kevmo314 / scuda

SCUDA is a GPU over IP bridge allowing GPUs on remote machines to be attached to CPU-only machines.
Apache License 2.0
536 stars 15 forks source link

Question About C++ Version Used in SCUDA #42

Open hasanisaeed opened 7 hours ago

hasanisaeed commented 7 hours ago

Hello,

I recently cloned the SCUDA and am trying to build and run the project. However, I'm unsure which version of C++ the project is compatible with.

I attempted to compile using C++11 with the following command:

nvcc -std=c++11 -o $server_out_path $server_path -lnvidia-ml -lcuda

I encountered this error:

saeed@saeed:~/github/scuda$ ./local.sh server
building server...
/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'

I also tried compiling with C++14 and C++17, but I ran into other issues as well.

Could you please clarify which C++ standard is being used for this project? Any guidance or tips would be greatly appreciated!


For your reference, I’m using the following environment:

CUDA Version: 11.5 // I guess that you are most likely using CUDA 12 🤔 NVCC Version:

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

Operating System: Ubuntu 22.04 g++ Version:

g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Thank you for your help!

Best regards, Saeed