First implementation of hipCtxXXX functions

Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
Cette révision appartient à :
Rahul Garg a révisé 2016-08-13 00:09:08 +05:30
1 Parent 0827e44a90
révision 62d390da58
4 fichiers modifiés
+83

Aucun fichier ne correspond à votre recherche

+7
Voir le fichier
@@ -31,9 +31,16 @@ int main(int argc, char *argv[])
hipDevice_t device;
hipCtx_t ctx;
hipCtx_t ctx1;
HIPCHECK(hipDeviceGetFromId(&device, 0));
HIPCHECK(hipCtxCreate(&ctx, 0, device));
HIPCHECK(hipCtxGetCurrent(&ctx1));
HIPCHECK(hipCtxPopCurrent(&ctx1));
HIPCHECK(hipCtxGetCurrent(&ctx1));
HIPCHECK(hipCtxDestroy(ctx));
passed();
};