EXSWCPHIPT-113 - Unit tests for hipArray3DCreate for default and surface arrays (#2714)

Tento commit je obsažen v:
Finlay authored and GitHub committed 2022-07-11 16:11:32 +05:30
1 rodič f072dfd60b
revize 646eaa43ea
6 files changed
+181 -12

No files matched your search

-4
Zobrazit soubor
@@ -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
}