tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

Compiler Errors WRT json.hpp and CPP version 14 requirement

Open sc0m3r opened this issue 3 years ago • 3 comments

problem seems to stem from : CUDACOMPILE : nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored. [P:\opensource\tiny-cuda-nn\build\src\tiny-cuda-nn.vcxproj] json cpp which needs c++14 is there a way to tweak the nvcc compiler ?

this also happens when compiling instant-ngp

Tried to build on multiple systems, specs listed

  • cuda 11.4, sm86 - 3090
  • cuda 10.2 sm70 - TitanV

build output: tiny-cuda-nn_build.log

sc0m3r avatar Mar 28 '22 23:03 sc0m3r

Could you let us know which host compiler (+ version) you are using? That might shed light on why nvcc reports that it doesn't support C++14.

Tom94 avatar Apr 01 '22 06:04 Tom94

I met the same compiler error in vs2019 16.11 and cuda 10.2, and finally compile success when I change cuda version to 11.4

xuxmin avatar Apr 01 '22 08:04 xuxmin

VS2019 Version16.8.3, cuda 11.4, sm86 - 3090 and VS2019 Version 16.11.5, cuda 10.2 sm70 - TitanV

sc0m3r avatar Apr 04 '22 20:04 sc0m3r