Skip to content

Commit cb7197e

Browse files
authored
[AMD] NFC: Add back useful comments regarding HIP_SYMBOL_LIST (#7351)
It's dropped in triton-lang/triton#7350 accidentally.
1 parent fb17bb2 commit cb7197e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

third_party/amd/backend/driver.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
// code should substitute the search path placeholder.
1212
static const char *hipLibSearchPaths[] = {"/*py_libhip_search_path*/"};
1313

14+
// The list of HIP dynamic library symbols and their signature we are interested
15+
// in this file.
16+
// |FOR_EACH_ERR_FN| is a macro to process APIs that return hipError_t;
17+
// |FOR_EACH_STR_FN| is a macro to process APIs that return const char *.
1418
#define HIP_SYMBOL_LIST(FOR_EACH_ERR_FN, FOR_EACH_STR_FN) \
1519
FOR_EACH_STR_FN(hipGetErrorString, hipError_t hipError) \
1620
FOR_EACH_ERR_FN(hipGetDeviceProperties, hipDeviceProp_t *prop, int deviceId) \

0 commit comments

Comments
 (0)