Hi,

replacing the optional.hpp file worked and now it's 
compiling to 66%. Now it says:


[ 33%] Building NVCC (Device) object 
CMakeFiles/cuda_copy_exe.dir/cuda_copy_exe_generated_data_copy.cu.o
[ 66%] Building NVCC intermediate link file 
CMakeFiles/cuda_copy_exe.dir/cuda_copy_exe_intermediate_link.o

nvcc fatal   : 'true -gencode arch=compute_50,code=sm_50': 
expected true or false

CMakeFiles/cuda_copy_exe.dir/build.make:68: recipe for 
target 
'CMakeFiles/cuda_copy_exe.dir/cuda_copy_exe_intermediate_link.o' 
failed
make[2]: *** 
[CMakeFiles/cuda_copy_exe.dir/cuda_copy_exe_intermediate_link.o] 
Error 1
CMakeFiles/Makefile2:67: recipe for target 
'CMakeFiles/cuda_copy_exe.dir/all' failed
make[1]: *** [CMakeFiles/cuda_copy_exe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


Best  regards,
Ivan



On Thu, 29 Mar 2018 08:05:48 -0500
  "Hartmut Kaiser" <[email protected]> wrote:
> 
>> > so specifying the architecture worked, but now a 
>>different
>> > problem occurs.
>> >
>> >
>> > /usr/local/include/hpx/util/optional.hpp(244): error:
>> > statement may not appear in a constexpr function
>> >
>> > /usr/local/include/hpx/util/optional.hpp(246): error: 
>>a
>> > constexpr function must contain exactly one return
>> > statement
>> >
>> > 2 errors detected in the compilation of
>> > "/tmp/tmpxft_00002044_00000000-4_data_copy.cpp4.ii".
>> > CMake Error at
>> > cuda_copy_exe_generated_data_copy.cu.o.cmake:279
>> > (message):
>> >    Error generating file
>> >
>> >
>> /home/kostov/Projects/Tests/data_copy/build/CMakeFiles/cuda_copy_exe.dir//
>> > ./cuda_copy_exe_generated_data_copy.cu.o
>> >
>> >
>> > Any idea what could be causing this?
>> 
>> This is another example of how broken the CUDA compiler 
>>is. Could you
>> create a ticket for this please? We need to fix this in 
>>optional.hpp.
>> As a workaround please replace constexpr on the function 
>>it complains
>> about with HPX_CXX14_CONSTEXPR (or remove the 
>>'constexpr' altogether).
> 
> Please see 
>https://github.com/STEllAR-GROUP/hpx/pull/3268 for a 
>possible
> fix.
> 
> Regards Hartmut
> ---------------
> http://boost-spirit.com
> http://stellar.cct.lsu.edu
> 
> 
> 
> _______________________________________________
> hpx-users mailing list
> [email protected]
> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to