the -std=c++ will overlap the -Xcompiler “-std=c++14”, Is posssibale use c++14 for host code in ubuntu ?
It is possible to use C++14 in .cpp files as long as the .cu files are C++11. Just make sure that the .cpp files are compiled by your host compiler, not nvcc.
Thanks, in fact, I’m using the cuda c++ and host device function. the code is both for host and device.
nvcc does not officially support c++14 constructs, even for host code.