CUDA kernel invokes and crash with SIGSEGV