diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp index 1309a11476..cbea2dc896 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp @@ -1251,7 +1251,7 @@ Device::init() } #endif // _WIN32 & DEBUG - calInit(); + gslInit(); #if defined(_WIN32) && !defined(_WIN64) _controlfp_s(&ignored, old, _MCW_RC | _MCW_PC); @@ -1259,7 +1259,7 @@ Device::init() // Get the total number of active devices // Count up all the devices in the system. - numDevices = calGetDeviceCount(); + numDevices = gsAdaptor::enumerateAdaptors(); CALuint ordinal = 0; const char* selectDeviceByName = NULL; @@ -1295,7 +1295,7 @@ void Device::tearDown() { osExit(); - calShutdown(); + gslExit(); aclCompilerFini(compiler_); if (hsaCompiler_ != NULL) { aclCompilerFini(hsaCompiler_); diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp index 5596c938ce..cf76f97f5b 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp @@ -64,7 +64,6 @@ CALGSLDevice::~CALGSLDevice() delete static_cast(m_nativeDisplayHandle); break; case GSL_DEVICE_MODE_GFX: - closeNativeDisplayHandle(); break; } } diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.h b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.h index 654e74a6a2..01334fc4ed 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.h +++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.h @@ -101,8 +101,6 @@ public: bool isVmMode() const { return m_vmMode; }; - void closeNativeDisplayHandle(); - uint32 getVPUCount(); void setVPUMask(uint32 mask); uint32 getVPUMask() const { return m_vpuMask; } diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceLinux.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceLinux.cpp deleted file mode 100644 index 31ae0b1980..0000000000 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceLinux.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include -#include "GSLDevice.h" -#include - -void CALGSLDevice::closeNativeDisplayHandle() -{ - //do nothing native handle should be close by lower layers -} - diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceWin.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceWin.cpp deleted file mode 100644 index 1f8926f14a..0000000000 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceWin.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "gsl_ctx.h" -#include "GSLDevice.h" -#include - -void CALGSLDevice::closeNativeDisplayHandle() -{ - DeleteDC((HDC)m_nativeDisplayHandle); - m_nativeDisplayHandle = NULL; -} diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.cpp index cf5b5351c6..704598f468 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.cpp @@ -2,15 +2,6 @@ #include "GSLContext.h" #include "backend.h" #include "GSLDevice.h" - -#include "os_if.h" - -#include - -#ifdef ATI_OS_LINUX -#include -#endif - #include "amuABI.h" bool @@ -184,23 +175,4 @@ getFuncInfoFromImage(CALimage image, CALfuncInfo *pFuncInfo) return true; } - gslMemObjectAttribTiling g_CALBETiling_Tiled = GSL_MOA_TILING_TILED; - -void -calInit(void) -{ - gslInit(); // initialize GSL -} - -void -calShutdown(void) -{ - gslExit(); -} - -uint32 -calGetDeviceCount() -{ - return gsAdaptor::enumerateAdaptors(); -} diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.h b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.h index edda5fcb8f..47e03379bb 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.h +++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/backend.h @@ -267,12 +267,4 @@ struct GpuEvent void invalidate() { id = InvalidID; } }; - -/* - * GPU Backend functions - */ -void calInit(void); -void calShutdown(void); -uint32 calGetDeviceCount(); - #endif