fix crash of profiling atexit when clashes with pycuda atexit handler
Merge pull request #1975 from rahul003/profiling

fix crash of profiling atexit when it clashes with pycuda atexit handler