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

cuda 12 compilation error #12

Open
akshit-sharma opened this issue Sep 27, 2023 · 0 comments
Open

cuda 12 compilation error #12

akshit-sharma opened this issue Sep 27, 2023 · 0 comments

Comments

@akshit-sharma
Copy link

akshit-sharma commented Sep 27, 2023

Compiling fsm with cuda 12 gives following error with the code.

g++ -Wall -fopenmp -std=c++17 -march=native -O3 -I../../include -I./ -I./dfscode -c omp_base.cc
g++ -Wall -fopenmp -std=c++17 -march=native -O3 -I../../include -I./ -I./dfscode -c main.cc
g++ -Wall -fopenmp -std=c++17 -march=native -O3 -I../../include -I./ -I./dfscode -c ../common/VertexSet.cc
g++ -Wall -fopenmp -std=c++17 -march=native -O3 -I../../include -I./ -I./dfscode -c ../common/graph.cc
g++ -Wall -fopenmp -std=c++17 -march=native -O3 -I../../include -I./ -I./dfscode main.o VertexSet.o graph.o omp_base.o -o fsm_omp_base -lgomp
mv fsm_omp_base ../../bin/
nvcc -gencode arch=compute_70,code=sm_70 -Xptxas -v -DUSE_GPU -O3 -w -DEDGE_PAR -I../../include -I./ -I./dfscode -c gpu_base.cu
/usr/local/cuda-12.2//bin/../targets/x86_64-linux/include/cub/agent/agent_batch_memcpy.cuh(886): error: expected an identifier
constexpr uint32_t (256 / 32) = BLOCK_THREADS / (1 << (5));
^

1 error detected in the compilation of "gpu_base.cu".
make: *** [../common.mk:123: gpu_base.o] Error 2

Error seems to be due to marco WARPS_PER_BLOCK (defined in common.h:59) which is also used as variable in name in agent_batch_memcpy.cuh:864

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

1 participant