EXSWCPHIPT-113 - Unit tests for hipArray3DCreate for default and surface arrays (#2714)
Tento commit je obsažen v:
1 rodič
f072dfd60b
revize
646eaa43ea
6 files changed
+181
-12
No files matched your search
@@ -24,17 +24,13 @@ THE SOFTWARE.
|
||||
#include <hip_test_common.hh>
|
||||
|
||||
DriverContext::DriverContext() {
|
||||
#if HT_NVIDIA
|
||||
HIP_CHECK(hipInit(0));
|
||||
HIP_CHECK(hipDeviceGet(&device, 0));
|
||||
HIP_CHECK(hipDevicePrimaryCtxRetain(&ctx, device));
|
||||
HIP_CHECK(hipCtxPushCurrent(ctx));
|
||||
#endif
|
||||
}
|
||||
|
||||
DriverContext::~DriverContext() {
|
||||
#if HT_NVIDIA
|
||||
HIP_CHECK(hipCtxPopCurrent(&ctx));
|
||||
HIP_CHECK(hipDevicePrimaryCtxRelease(device));
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Zablokovat Uživatele