EXSWCPHIPT-113 - Unit tests for hipArray3DCreate for default and surface arrays (#2714)
[ROCm/hip-tests commit: 646eaa43ea]
This commit is contained in:
1 parent
321702b3f5
commit
fe39c423bb
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
Block a user