Directed tests: Fix hipCtx_simple on NVCC
The test was using hipDeviceGetFromId instead of hipDeviceGet Change-Id: Ia035ded5212f2659d5c8f01e9f6fcec514fe7ccb
Ta zmiana jest zawarta w:
%! (template.HTML=
Maneesh Gupta)złożyło 2016-09-09 12:04:32 +05:30
1 rodzic
59b6ffbe70
złożenie
8efae1e488
Plik 1 zmieniony
+1
-1
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
|
||||
hipCtx_t ctx;
|
||||
hipCtx_t ctx1;
|
||||
|
||||
HIPCHECK(hipDeviceGetFromId(&device, 0));
|
||||
HIPCHECK(hipDeviceGet(&device, 0));
|
||||
HIPCHECK(hipCtxCreate(&ctx, 0, device));
|
||||
HIPCHECK(hipCtxGetCurrent(&ctx1));
|
||||
HIPCHECK(hipCtxGetDevice(&device1));
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika