Nsight Compute - can't compile Samples

Hi! I am getting used the Nsight Compute tool, and I have cloned this repository (https://github.com/NVIDIA/cuda-samples.git) to VS Code and am running this on University’s remote GPU server which is running in Linux. I tried to compile one of the sample program as mentioned in Readme file:

### Linux

Ensure that CMake (version 3.20 or later) is installed. Install it using your package manager if necessary:

e.g.
```sudo apt install cmake```

Navigate to the root of the cloned repository and create a build directory:

mkdir build && cd build

Configure the project with CMake:

cmake ..

Build the samples:

make -j$(nproc)

Run the samples from their respective directories in the build folder. You can also follow this process from and subdirectory of the samples repo, or from within any individual sample.

I’ve just run cmake .. command and am getting the following error message:

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 12.8.93
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /usr/local/cuda/targets/x86_64-linux/include (found version "12.8.93") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleCUDA2GL'
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) 
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) 
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) 
-- MPI not found - will not build sample 'simpleMPI'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleTexture3D'
-- Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR) 
-- EGL not found - will not build sample 'EGLStream_CUDA_CrossGPU'
-- Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR) 
-- EGL not found - will not build sample 'EGLStream_CUDA_Interop'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'FunctionPointers'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'boxFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'imageDenoising'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'particles'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bindlessTexture'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'FilterBorderControlNPP'
CMake Error at 4_CUDA_Libraries/MersenneTwisterGP11213/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/batchCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'boxFilterNPP'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'cannyEdgeDetectorNPP'
CMake Error at 4_CUDA_Libraries/conjugateGradient/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/conjugateGradientPrecond/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/conjugateGradientUM/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find NVSCI (missing: NVSCIBUF_LIBRARY NVSCISYNC_LIBRARY NVSCIBUF_INCLUDE_DIR NVSCISYNC_INCLUDE_DIR) 
-- NvSCI not found - will not build sample 'cudaNvSci'
CMake Error at 4_CUDA_Libraries/cuSolverDn_LinearSolver/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverRf/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LinearSolver/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LowlevelCholesky/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LowlevelQR/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'freeImageInteropNPP'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'histEqualizationNPP'
CMake Error at 4_CUDA_Libraries/jitLto/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/matrixMulCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/nvJPEG/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/nvJPEG_encoder/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'oceanFFT'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'randomFog'
CMake Error at 4_CUDA_Libraries/simpleCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/simpleCUBLASXT/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/simpleCUBLAS_LU/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/watershedSegmentationNPP/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'Mandelbrot'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'SobelFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bicubicTexture'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bilateralFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'fluidsGL'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'marchingCubes'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'nbody'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'postProcessGL'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'recursiveGaussian'
-- Sample 'simpleD3D11' is Windows-only - skipping
-- Sample 'simpleD3D11Texture' is Windows-only - skipping
-- Sample 'simpleD3D12' is Windows-only - skipping
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleGL'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Looking for GLFW/glfw3.h
-- Looking for GLFW/glfw3.h - not found
-- Vulkan not found - will not build sample 'simpleVulkan'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Vulkan not found - will not build sample 'simpleVulkanMMAP'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'smokeParticles'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'volumeFiltering'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'volumeRender'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Vulkan not found - will not build sample 'vulkanImageCUDA'
-- Using CUDA_HOME: /usr/local/cuda
-- Using CUDA_LIB:  /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so
-- Using LIBNVVM_HOME: /usr/local/cuda/nvvm
-- Using libnvvm header:      /usr/local/cuda/nvvm/include/nvvm.h
-- Using libnvvm header path: /usr/local/cuda/nvvm/include
-- Using libnvvm library:     /usr/local/cuda/nvvm/lib64/libnvvm.so
-- Using rpath: /usr/local/cuda/nvvm/lib64
-- Skipping the build of the cuda-c-linking sample.
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.28)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
arvinth@student:~/cuda-samples-1/Samples/build$ cd ;
arvinth@student:~$ ls
Documents  cuda-samples  cuda-samples-1
arvinth@student:~$ cd cuda-samples
arvinth@student:~/cuda-samples$ cd
arvinth@student:~$ cuda-samples-1
cuda-samples-1: command not found
arvinth@student:~$ cd cuda-samples-1
arvinth@student:~/cuda-samples-1$ ls
CHANGELOG.md  CMakeLists.txt  CONTRIBUTING.md  Common  LICENSE  README.md  Samples  bin  cmake  run_tests.py  test_args.json
arvinth@student:~/cuda-samples-1$ cd Samples/
arvinth@student:~/cuda-samples-1/Samples$ ls
0_Introduction  2_Concepts_and_Techniques  4_CUDA_Libraries   6_Performance  8_Platform_Specific
1_Utilities     3_CUDA_Features            5_Domain_Specific  7_libNVVM      CMakeLists.txt
arvinth@student:~/cuda-samples-1/Samples$ mkdir build && cd build
arvinth@student:~/cuda-samples-1/Samples/build$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 12.8.93
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /usr/local/cuda/targets/x86_64-linux/include (found version "12.8.93") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleCUDA2GL'
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) 
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) 
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) 
-- MPI not found - will not build sample 'simpleMPI'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleTexture3D'
-- Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR) 
-- EGL not found - will not build sample 'EGLStream_CUDA_CrossGPU'
-- Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR) 
-- EGL not found - will not build sample 'EGLStream_CUDA_Interop'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'FunctionPointers'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'boxFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'imageDenoising'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'particles'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bindlessTexture'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'FilterBorderControlNPP'
CMake Error at 4_CUDA_Libraries/MersenneTwisterGP11213/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/batchCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'boxFilterNPP'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'cannyEdgeDetectorNPP'
CMake Error at 4_CUDA_Libraries/conjugateGradient/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/conjugateGradientPrecond/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/conjugateGradientUM/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find NVSCI (missing: NVSCIBUF_LIBRARY NVSCISYNC_LIBRARY NVSCIBUF_INCLUDE_DIR NVSCISYNC_INCLUDE_DIR) 
-- NvSCI not found - will not build sample 'cudaNvSci'
CMake Error at 4_CUDA_Libraries/cuSolverDn_LinearSolver/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverRf/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LinearSolver/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LowlevelCholesky/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/cuSolverSp_LowlevelQR/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'freeImageInteropNPP'
-- Could NOT find FreeImage (missing: FreeImage_LIBRARY FreeImage_INCLUDE_DIR) 
-- FreeImage not found - will not build sample 'histEqualizationNPP'
CMake Error at 4_CUDA_Libraries/jitLto/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/matrixMulCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/nvJPEG/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/nvJPEG_encoder/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'oceanFFT'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'randomFog'
CMake Error at 4_CUDA_Libraries/simpleCUBLAS/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/simpleCUBLASXT/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/simpleCUBLAS_LU/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


CMake Error at 4_CUDA_Libraries/watershedSegmentationNPP/CMakeLists.txt:28 (target_compile_features):
  target_compile_features no known features for CUDA compiler

  ""

  version .


-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'Mandelbrot'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'SobelFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bicubicTexture'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'bilateralFilter'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'fluidsGL'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'marchingCubes'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'nbody'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'postProcessGL'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'recursiveGaussian'
-- Sample 'simpleD3D11' is Windows-only - skipping
-- Sample 'simpleD3D11Texture' is Windows-only - skipping
-- Sample 'simpleD3D12' is Windows-only - skipping
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'simpleGL'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Looking for GLFW/glfw3.h
-- Looking for GLFW/glfw3.h - not found
-- Vulkan not found - will not build sample 'simpleVulkan'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Vulkan not found - will not build sample 'simpleVulkanMMAP'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'smokeParticles'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'volumeFiltering'
-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- GLUT not found - will not build sample 'volumeRender'
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Vulkan not found - will not build sample 'vulkanImageCUDA'
-- Using CUDA_HOME: /usr/local/cuda
-- Using CUDA_LIB:  /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so
-- Using LIBNVVM_HOME: /usr/local/cuda/nvvm
-- Using libnvvm header:      /usr/local/cuda/nvvm/include/nvvm.h
-- Using libnvvm header path: /usr/local/cuda/nvvm/include
-- Using libnvvm library:     /usr/local/cuda/nvvm/lib64/libnvvm.so
-- Using rpath: /usr/local/cuda/nvvm/lib64
-- Skipping the build of the cuda-c-linking sample.
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.28)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Please let me know how this can be resolved. I am using the latest v12.9 now and the error message attached belongs to this version. I’ve earlier tried with v12.8 and have got the similar long error message.

Hi, @arvinth193001015

You should navigate to the root of the cloned repository and create a build directory.
In your case, you should execute “mkdir build && cd build” under “cuda-samples-1” not “cuda-samples-1/Samples”.

arvinth@student:~/cuda-samples-1$ ls
CHANGELOG.md CMakeLists.txt CONTRIBUTING.md Common LICENSE README.md Samples bin cmake run_tests.py test_args.json
arvinth@student:~/cuda-samples-1$ cd Samples/
arvinth@student:~/cuda-samples-1/Samples$ ls
0_Introduction 2_Concepts_and_Techniques 4_CUDA_Libraries 6_Performance 8_Platform_Specific
1_Utilities 3_CUDA_Features 5_Domain_Specific 7_libNVVM CMakeLists.txt
arvinth@student:~/cuda-samples-1/Samples$ mkdir build && cd build

Dear veraj,

Thank you. It worked. I now navigated to the Quicksort path and tried to compile it with command:
1)nvcc cdpSimpleQuicksort.cu -o cdpSimpleQuicksort
it didn’t work and threw an error

“ fatal error: helper_cuda.h: No such file or directory ”
  1. It tried specifying the path of helper_cuda.h file with this command:
    nvcc cdpSimpleQuicksort.cu -o cdpSimpleQuicksort -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\samples\common\inc"
    and still the error doesn’t go.

I’ve attached the terminal text below FYRP. I am trying to compile it and get an .exe file in this path, which after providing as application executable file in Nsight Compute software, through which I’ll be able to generate the report.

If the approach above is wrong, Please tell me the steps to be followed to generate a report.

Terminal text:

[100%] Linking CUDA device code CMakeFiles/radixSortThrust.dir/cmake_device_link.o
[100%] Linking CUDA executable radixSortThrust
[100%] Built target radixSortThrust
arvinth@student:~/cuda-samples-1/build$ 
arvinth@student:~/cuda-samples-1/build$ cd .
arvinth@student:~/cuda-samples-1/build$ cd ..
arvinth@student:~/cuda-samples-1$ cd Samples
arvinth@student:~/cuda-samples-1/Samples$ cd 3_CUDA_Features/
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features$ cd cdpSimpleQuicksort
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features/cdpSimpleQuicksort$ nvcc cdpSimpleQuicksort.cu -o report_quicksort
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
cdpSimpleQuicksort.cu:29:10: fatal error: helper_cuda.h: No such file or directory
   29 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features/cdpSimpleQuicksort$ nvcc cdpSimpleQuicksort.cu -o report_quicksort -I/path/to/cuda/
samples/common/inc/
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
cdpSimpleQuicksort.cu:29:10: fatal error: helper_cuda.h: No such file or directory
   29 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features/cdpSimpleQuicksort$ nvcc cdpSimpleQuicksort.cu -o report_quicksort -I/path/to/cuda/samples/common/inc/ -Wno-deprecated-gpu-targets
cdpSimpleQuicksort.cu:29:10: fatal error: helper_cuda.h: No such file or directory
   29 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features/cdpSimpleQuicksort$ nvcc cdpSimpleQuicksort.cu -o report_quicksort -I~/cuda-samples-1/Common/inc/ -Wno-deprecated-gpu-targets
cdpSimpleQuicksort.cu:29:10: fatal error: helper_cuda.h: No such file or directory
   29 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
arvinth@student:~/cuda-samples-1/Samples/3_CUDA_Features/cdpSimpleQuicksort$ nvcc cdpSimpleQuicksort.cu -o report_quicksort -I~/cuda-samples-1/Common/ -Wno-deprecated-gpu-targets
cdpSimpleQuicksort.cu:29:10: fatal error: helper_cuda.h: No such file or directory
   29 | #include <helper_cuda.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

Why don’t you go to build/Samples/3_CUDA_Features/cdpSimpleQuicksort and execute “make” directly ?

For any other sample compile issue, please check in sample git directly.