SWDEV-328274 - Move DLLMain from VDI layer to HIP/OCL layers
Change-Id: Ibd3388f0981672cd209d7370f8a28b2883abdea2
[ROCm/clr commit: cb4aabd285]
This commit is contained in:
1 parent
85f6f2a0c7
commit
0d4efc9f0f
3 files changed
+63
-6
No files matched your search
@@ -90,16 +90,12 @@ Device::~Device() {
|
||||
|
||||
}
|
||||
|
||||
namespace amd {
|
||||
|
||||
void shutDown() {
|
||||
void ihipDestroyDevice() {
|
||||
for (auto deviceHandle : g_devices) {
|
||||
delete deviceHandle;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace amd
|
||||
|
||||
hipError_t ihipDeviceGet(hipDevice_t* device, int deviceId) {
|
||||
if (deviceId < 0 || static_cast<size_t>(deviceId) >= g_devices.size() || device == nullptr) {
|
||||
return hipErrorInvalidDevice;
|
||||
|
||||
Reference in new issue
Block a user