SWDEV-554372 - Add 3 HIP_GET_PROC_ADDRESS_xxx flags (#1057)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fb006546d0
Коммит
7573fa168d
@@ -604,6 +604,19 @@ typedef enum hipDeviceAttribute_t {
|
||||
// Extended attributes for vendors
|
||||
} hipDeviceAttribute_t;
|
||||
|
||||
// Flags that can be used with hipGetProcAddress.
|
||||
/** Default flag. Equivalent to HIP_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM if compiled with
|
||||
* -fgpu-default-stream=per-thread flag or HIP_API_PER_THREAD_DEFAULT_STREAM macro is
|
||||
* defined.*/
|
||||
#define HIP_GET_PROC_ADDRESS_DEFAULT 0x0
|
||||
|
||||
/** Search for all symbols except the corresponding per-thread versions.*/
|
||||
#define HIP_GET_PROC_ADDRESS_LEGACY_STREAM 0x1
|
||||
|
||||
/** Search for all symbols including the per-thread versions. If a per-thread version cannot be
|
||||
* found, returns the legacy version.*/
|
||||
#define HIP_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM 0x2
|
||||
|
||||
typedef enum hipDriverProcAddressQueryResult {
|
||||
HIP_GET_PROC_ADDRESS_SUCCESS = 0,
|
||||
HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1,
|
||||
|
||||
Ссылка в новой задаче
Block a user