Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cuda] testEigenGPUNoFit test fails #41

Open
makortel opened this issue May 17, 2020 · 2 comments
Open

[cuda] testEigenGPUNoFit test fails #41

makortel opened this issue May 17, 2020 · 2 comments
Labels
bug Something isn't working cuda

Comments

@makortel
Copy link
Collaborator

makortel commented May 17, 2020

This issue is a follow-up to #40.

Instructions to reproduce

$ make cuda
$ ./test/cuda/testEigenGPUNoFit
TEST EIGENVALUES
TEST INVERSE 3x3
TEST INVERSE 4x4
TEST INVERSE 5x5
terminate called after throwing an instance of 'std::runtime_error'
  what():  
.../pixeltrack-standalone/src/cuda/test/testEigenGPUNoFit.cu, line 170:
cudaCheck(cudaDeviceSynchronize());
cudaErrorLaunchFailure: unspecified launch failure

Aborted (core dumped)
@makortel
Copy link
Collaborator Author

cuda-memcheck gives

========= Unknown Error
=========
========= Program hit cudaErrorLaunchFailure (error 719) due to "unspecified launch failure" on CUDA API call to cudaDeviceSynchronize. 
=========     Saved host backtrace up to driver entry point at error
=========     Host Frame:/lib64/libcuda.so.1 [0x3c43a3]
=========     Host Frame:.../cmssw/slc7_amd64_gcc820/external/cuda/10.2.89/lib64/libcudart.so.10.2 (cudaDeviceSynchronize + 0x166) [0x4fb26]
=========     Host Frame:./test/cuda/testEigenGPUNoFit (_Z14testInverse5x5v + 0x730) [0x83f0]
=========     Host Frame:./test/cuda/testEigenGPUNoFit (main + 0x18) [0x4358]
=========     Host Frame:/lib64/libc.so.6 (__libc_start_main + 0xf5) [0x22505]
=========     Host Frame:./test/cuda/testEigenGPUNoFit [0x4437]
=========
terminate called after throwing an instance of 'std::runtime_error'
  what():  
.../pixeltrack-standalone/src/cuda/test/testEigenGPUNoFit.cu, line 170:
cudaCheck(cudaDeviceSynchronize());
cudaErrorLaunchFailure: unspecified launch failure

========= Error: process didn't terminate successfully
========= No CUDA-MEMCHECK results found

@makortel makortel added bug Something isn't working cuda labels May 17, 2020
@makortel
Copy link
Collaborator Author

By random poking the assignment in

__global__ void kernelInverse5x5(Matrix5d *in, Matrix5d *out) { (*out) = in->inverse(); }

is the problem (the call to inverse() works, unless it gets optimized away by the compiler).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda
Projects
None yet
Development

No branches or pull requests

1 participant