I am using CUDA 5.5 in conjunction with gcc 4.7.3 on linux and receive an error from cudafe when using the C++11 override keyword (error is “expected a ;” implying it does not recognize the keyword). The call to cudafe is included below. This same code compiles fine on windows w/ CUDA 5.5.
Are there any known limitations regarding C++11 support in cudafe that exist in linux but not windows?
I considered that it might be possible that cudafe was invoking the wrong compiler (say an earlier version of gcc that doesn’t support override), but I don’t see any calls from cudafe to gcc in the verbose output and the documentation on cudafe is fairly sparse.
cudafe call:
cudafe --m64 --gnu_version=40703 -tused --no_remove_unneeded_entities --device-c --gen_c_file_name “/tmp/tmpxft_00007bfe_00000000-3_test.compute_35.cudafe1.c” --stub_file_name “/tmp/tmpxft_00007bfe_00000000-3_test.compute_35.cudafe1.stub.c” --gen_device_file_name “/tmp/tmpxft_00007bfe_00000000-3_test.compute_35.cudafe1.gpu” --nv_arch “compute_35” --gen_module_id_file --module_id_file_name “/tmp/tmpxft_00007bfe_00000000-2_test.module_id” --include_file_name “tmpxft_00007bfe_00000000-1_test.fatbin.c” “/tmp/tmpxft_00007bfe_00000000-9_test.compute_35.cpp1.ii”