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

build error #33

Open
kaizilla7 opened this issue Feb 8, 2025 · 6 comments
Open

build error #33

kaizilla7 opened this issue Feb 8, 2025 · 6 comments

Comments

@kaizilla7
Copy link

~/nvbandwidth/testcase.cpp: In static member function ‘static bool Testcase::filterSupportsMulticast()’:
~/nvbandwidth/testcase.cpp:61:60: error: ‘CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED’ was not declared in this scope; did you mean ‘CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED’?
61 | CU_ASSERT(cuDeviceGetAttribute(&supportsMulticast, CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED, dev));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/nvbandwidth/error_handling.h:49:26: note: in definition of macro ‘CU_ASSERT’
49 | CUresult cuResult = (x);
| ^
make[2]: *** [CMakeFiles/nvbandwidth.dir/build.make:76: CMakeFiles/nvbandwidth.dir/testcase.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/nvbandwidth.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@esitaridi
Copy link
Collaborator

which cuda toolkit version/driver are you using?

@seng1e
Copy link

seng1e commented Feb 9, 2025

same issue, my cuda version is 12.4

@seng1e
Copy link

seng1e commented Feb 9, 2025

Edit file testcase.cpp 61 line with:

// CU_ASSERT(cuDeviceGetAttribute(&supportsMulticast, CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED, dev));
supportsMulticast = 1; 

and run cmd make clean && make

works for me.

@esitaridi
Copy link
Collaborator

Could you also share the driver version?

@kaizilla7
Copy link
Author

NVIDIA-SMI 550.127.08 Driver Version: 550.127.08 CUDA Version: 12.4

@kaizilla7
Copy link
Author

Edit file testcase.cpp 61 line with:

// CU_ASSERT(cuDeviceGetAttribute(&supportsMulticast, CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED, dev));
supportsMulticast = 1; 

and run cmd make clean && make

works for me.

It worked. Thanks.

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

3 participants