OpenCL program on amazon EC2 hanging at the end -


i have opencl c++ program i'm running on nvidia gpu-enabled ec2 instance. quite often, @ end of program, hangs, , end having stop instance out of it.

here end of code, there should doing differently?

/* finalization */ ret = clflush(command_queue); printf("clflush: %s\n", geterrorstring(ret)); ret = clfinish(command_queue); printf("clfinish: %s\n", geterrorstring(ret)); ret = clreleasememobject(ymobj); printf("clreleasememobject: %s\n", geterrorstring(ret)); ret = clreleaseprogram(program); printf("clreleaseprogram: %s\n", geterrorstring(ret)); ret = clreleasekernel(kernel); printf("clreleasekernel: %s\n", geterrorstring(ret)); ret = clreleasecommandqueue(command_queue); printf("clreleasecommandqueue: %s\n", geterrorstring(ret)); ret = clreleasecontext(context); printf("clreleasecontext: %s\n", geterrorstring(ret));   free(source_str);  free(y);  exit(0); 

typically can see output command following clfinish, nothing after that.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -