Skip to content

cdpQuadtree: Add missing iostream header - #451

Open
unexploredtest wants to merge 1 commit into
NVIDIA:masterfrom
unexploredtest:build-fix
Open

cdpQuadtree: Add missing iostream header#451
unexploredtest wants to merge 1 commit into
NVIDIA:masterfrom
unexploredtest:build-fix

Conversation

@unexploredtest

Copy link
Copy Markdown

Building the project results in an error:

[ 51%] Building CXX object cpp/4_CUDA_Libraries/cuSolverDn_LinearSolver/CMakeFiles/cuSolverDn_LinearSolver.dir/cuSolverDn_LinearSolver.cpp.o
/home/username/Documents/git/cuda-samples/cpp/3_CUDA_Features/cdpQuadtree/cdpQuadtree.cu(678): error: namespace "std" has no member "cout"
      std::cout << "Launching CDP kernel to build the quadtree" << std::endl;
           ^

/home/username/Documents/git/cuda-samples/cpp/3_CUDA_Features/cdpQuadtree/cdpQuadtree.cu(697): error: namespace "std" has no member "cout"
      std::cout << "Results: " << (ok ? "OK" : "FAILED") << std::endl;
           ^

/home/username/Documents/git/cuda-samples/cpp/3_CUDA_Features/cdpQuadtree/cdpQuadtree.cu(725): error: namespace "std" has no member "cerr"
          std::cerr << "cdpQuadTree requires SM 3.5 or higher to use CUDA Dynamic "

this is because iostream wasn't included despite std::cout and std::cerr being used. The failure happens in Arch linux with nvcc V13.3.73.

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

Successfully merging this pull request may close these issues.

1 participant