Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building errors #1

Open
Da1sypetals opened this issue May 4, 2024 · 2 comments
Open

Building errors #1

Da1sypetals opened this issue May 4, 2024 · 2 comments

Comments

@Da1sypetals
Copy link

System: WSL ubuntu 22.04
Operations directly follows the README.
message: after cmake .. and make, the following prompted:

[ 12%] Building NVCC (Device) object CMakeFiles/fusedFourierKANGPU.dir/kernels/fusedFourierKANGPU_generated_fusedFourierKAN.cu.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
CMake Error at fusedFourierKANGPU_generated_fusedFourierKAN.cu.o.cmake:280 (message):
  Error generating file
  /mnt/a/dev/fftkan/FusedFourierKAN/build/CMakeFiles/fusedFourierKANGPU.dir/kernels/./fusedFourierKANGPU_generated_fusedFourierKAN.cu.o


make[2]: *** [CMakeFiles/fusedFourierKANGPU.dir/build.make:382: CMakeFiles/fusedFourierKANGPU.dir/kernels/fusedFourierKANGPU_generated_fusedFourierKAN.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/fusedFourierKANGPU.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Please help, a lot of thanks.

@Da1sypetals
Copy link
Author

This solves.
NVlabs/instant-ngp#119 (comment)

@unrealwill
Copy link
Collaborator

thanks @Da1sypetals for reporting build issues, and finding a solution 👍 (using an older g++ version)

my current versions (where it compiles fine) :

g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0
import torch as th
>>> th.__version__
'2.2.1+cu121'

I'll leave a note on the Readme.txt to use older g++ version while thinking for a more long term solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants