Skip to content

CUDA: nvcc ICE with recent changes to the finite-difference classes #106

@bchretien

Description

@bchretien

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions