Including the current finite-difference-gradient.hh in a program compiled with nvcc sends NVIDIA's compiler to outer space.
Repro code
#include <roboptim/core/decorator/finite-difference-gradient.hh>
int main(int argc, char *argv[])
{
}
Then compile with:
$ nvcc test_nvcc.cu -I/usr/include/eigen3
Output:
/usr/include/roboptim/core/decorator/finite-difference-gradient.hxx(307): internal error: assertion failed: alloc_copy_of_pending_pragma: copied pragma has source sequence entry (/dvs/p4/build/sw/rel/gpu_drv/r352/r352_00/drivers/compiler/edg/EDG_4.9/src/pragma.c, line 512)
1 catastrophic error detected in the compilation of "/tmp/tmpxft_000055d7_00000000-5_test_nvcc.cpp4.ii".
Compilation aborted.
nvcc error : 'cudafe++' died due to signal 6
nvcc error : 'cudafe++' core dumped
More information
This was tested on Arch Linux 64bit with CUDA 7.5, and roboptim-core 26dbc63.
Including the current
finite-difference-gradient.hhin a program compiled withnvccsends NVIDIA's compiler to outer space.Repro code
Then compile with:
Output:
More information
This was tested on Arch Linux 64bit with CUDA 7.5, and roboptim-core 26dbc63.