gem5 v24.0.0.0
Loading...
Searching...
No Matches
kfd_event_defines.h File Reference

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 

Macros

#define KFD_GPU_ID_HASH_WIDTH   16
 
#define PAGE_SHIFT   12
 
#define KFD_MMAP_TYPE_SHIFT   (62 - PAGE_SHIFT)
 
#define KFD_MMAP_TYPE_MASK   (0x3ULL << KFD_MMAP_TYPE_SHIFT)
 
#define KFD_MMAP_TYPE_DOORBELL   (0x3ULL << KFD_MMAP_TYPE_SHIFT)
 
#define KFD_MMAP_TYPE_EVENTS   (0x2ULL << KFD_MMAP_TYPE_SHIFT)
 
#define SLOTS_PER_PAGE   KFD_SIGNAL_EVENT_LIMIT
 
#define KFD_MMAP_GPU_ID_SHIFT   (46 - PAGE_SHIFT)
 
#define KFD_MMAP_GPU_ID_MASK
 
#define KFD_MMAP_GPU_ID(gpu_id)    ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK)
 

Macro Definition Documentation

◆ KFD_GPU_ID_HASH_WIDTH

#define KFD_GPU_ID_HASH_WIDTH   16

Definition at line 39 of file kfd_event_defines.h.

◆ KFD_MMAP_GPU_ID

#define KFD_MMAP_GPU_ID ( gpu_id)     ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK)

Definition at line 51 of file kfd_event_defines.h.

Referenced by gem5::GPUComputeDriver::allocateQueue().

◆ KFD_MMAP_GPU_ID_MASK

#define KFD_MMAP_GPU_ID_MASK
Value:
(((1ULL << KFD_GPU_ID_HASH_WIDTH) - 1) \
#define KFD_MMAP_GPU_ID_SHIFT
#define KFD_GPU_ID_HASH_WIDTH

Definition at line 49 of file kfd_event_defines.h.

◆ KFD_MMAP_GPU_ID_SHIFT

#define KFD_MMAP_GPU_ID_SHIFT   (46 - PAGE_SHIFT)

Definition at line 48 of file kfd_event_defines.h.

◆ KFD_MMAP_TYPE_DOORBELL

#define KFD_MMAP_TYPE_DOORBELL   (0x3ULL << KFD_MMAP_TYPE_SHIFT)

◆ KFD_MMAP_TYPE_EVENTS

#define KFD_MMAP_TYPE_EVENTS   (0x2ULL << KFD_MMAP_TYPE_SHIFT)

◆ KFD_MMAP_TYPE_MASK

#define KFD_MMAP_TYPE_MASK   (0x3ULL << KFD_MMAP_TYPE_SHIFT)

Definition at line 43 of file kfd_event_defines.h.

Referenced by gem5::GPUComputeDriver::mmap().

◆ KFD_MMAP_TYPE_SHIFT

#define KFD_MMAP_TYPE_SHIFT   (62 - PAGE_SHIFT)

Definition at line 42 of file kfd_event_defines.h.

◆ PAGE_SHIFT

#define PAGE_SHIFT   12

◆ SLOTS_PER_PAGE

#define SLOTS_PER_PAGE   KFD_SIGNAL_EVENT_LIMIT

Definition at line 46 of file kfd_event_defines.h.

Referenced by gem5::GPUComputeDriver::ioctl().


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0