SWDEV-437702 - implement hipGetProcAddress
This should be used in place of dlsym or GetProcAddress (linux and windows respectively)
Change-Id: I5501b538e03892e8e5a2282678d848fcaf21d911
[ROCm/clr commit: 0479cdb3dd]
Cette révision appartient à :
1 Parent
fe3c0a3fdc
révision
b251260e2a
10 fichiers modifiés
+238
-18
Aucun fichier ne correspond à votre recherche
@@ -18,10 +18,13 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE. */
|
||||
|
||||
#include "thread/thread.hpp"
|
||||
|
||||
#include <windows.h>
|
||||
#include <iostream>
|
||||
#include <hip/hip_runtime.h>
|
||||
|
||||
#include "thread/thread.hpp"
|
||||
#include "hip_platform.hpp"
|
||||
|
||||
namespace hip {
|
||||
void ihipDestroyDevice();
|
||||
}
|
||||
@@ -46,6 +49,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
|
||||
_set_error_mode(_OUT_TO_STDERR);
|
||||
}
|
||||
#endif // DEBUG
|
||||
hip::PlatformState::instance().setDynamicLibraryHandle(static_cast<void*>(hinst));
|
||||
break;
|
||||
case DLL_PROCESS_DETACH: {
|
||||
amd::Thread* thread = amd::Thread::current();
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur