MCPcopy Create free account
hub / github.com/ROCm/clr / getDynamicLibraryHandle

Method getDynamicLibraryHandle

hipamd/src/hip_platform.cpp:1086–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086void* PlatformState::getDynamicLibraryHandle() {
1087 amd::ScopedLock lock(lock_);
1088
1089 if (dynamicLibraryHandle_ != nullptr) {
1090 return dynamicLibraryHandle_;
1091 }
1092
1093#ifdef _WIN32
1094 const char* libName = "amdhip64.dll";
1095#else
1096 const char* libName = "libamdhip64.so";
1097#endif
1098
1099 dynamicLibraryHandle_ = amd::Os::loadLibrary(libName);
1100 return dynamicLibraryHandle_;
1101}
1102
1103void PlatformState::setDynamicLibraryHandle(void* handle) {
1104 amd::ScopedLock lock(lock_);

Callers 2

hipGetProcAddressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected