This commit is contained in:
Evghenii
2013-11-13 17:23:23 +01:00
parent 61fab0340c
commit 8b0f871c06
2 changed files with 59 additions and 19 deletions

View File

@@ -99,6 +99,7 @@ void createContext(const int deviceId = 0)
// Create driver context
checkCudaErrors(cuCtxCreate(&context, 0, device));
checkCudaErrors(cuCtxSetLimit(CU_LIMIT_MALLOC_HEAP_SIZE,1024*1024*1024));
}
void destroyContext()
{
@@ -370,6 +371,7 @@ int main (int argc, char *argv[])
int ntask = 0;
void *func_args[] = {&n, &d_code, &d_order, &ntask};
const double dt = CUDALaunch(NULL, func_name, func_args);
tISPC2 += dt;
#endif
if (argc != 3)