PowerInfer icon indicating copy to clipboard operation
PowerInfer copied to clipboard

nvcc fails due to illegal options

Open gkoundry opened this issue 1 year ago • 1 comments

When I try to build this I get the following error: nvcc fatal : Unknown option 'Wmissing-declarations'

The cmake files seem to be set up to pass gcc options to nvcc which AFAIK are not supported.

gkoundry avatar Dec 20 '23 13:12 gkoundry

+1 getting the same here

[  7%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o
nvc++-Error-Unknown switch: -Wmissing-declarations
nvc++-Error-Unknown switch: -Wmissing-noreturn
gmake[2]: *** [CMakeFiles/llama.dir/build.make:76: CMakeFiles/llama.dir/llama.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:676: CMakeFiles/llama.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

I am trying to build inside an NVidia HPC docker container:

sudo docker run --gpus all -it nvcr.io/nvidia/nvhpc:23.11-devel-cuda_multi-ubuntu22.04

nick-lambdalabs avatar Dec 20 '23 22:12 nick-lambdalabs

This issue appears to be more related to the environment. We've received recent feedback indicating that the same failure occurred with CUDA Toolkit 10.1. The problem was resolved after upgrading the CUDA Toolkit to version 11.8. We suggest considering an upgrade to mitigate this issue.

hodlen avatar Mar 05 '24 08:03 hodlen

We have found the root cause of these errors that CMake passes host compiling arguments to nvcc and fixed it via #161. Please feel free to reopen this issue if the bug persists.

hodlen avatar Apr 06 '24 16:04 hodlen