I'm trying to compile a CUDA example which has;
cuda.cu:
__constant__ unsigned VERTICES;
__constant__ unsigned TRIANGLES;
and the corresponding code in main.cpp;
cudaMemcpyToSymbol(VERTICES, &verticesNo, sizeof(int));
cudaMemcpyToSymbol(TRIANGLES, &trianglesNo, sizeof(int));
How to avoid "VERTICES not declared in this scope" error when compiling the main.cpp?
TIA.
cheers,
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…