Skip to content

error when building with cmake: 'cuda_compile_and_embed' not found #1

@HugoPhibbs

Description

@HugoPhibbs

Hi, I'm trying to build this on the rt-dbscan branch.

I'm using Cmake 3.12.0. Basically the output is:

../cmake-3.12.0-Linux-x86_64/bin/cmake ..
CMake Error at CMakeLists.txt:19 (cmake_policy):
  Policy "CMP0146" is not known to this version of CMake.


-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- The CUDA compiler identification is NVIDIA 11.8.89
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda-11.8/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-11.8/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Detected the OptiX_INSTALL_DIR env variable (pointing to /home/hphi344/Documents/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64; going to use this for finding optix.h
-- Found OptiX: /home/hphi344/Documents/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64  
-- #owl.cmake: found TBB, in include dir 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so  found components:  OpenGL 
CMake Error at samples/cmdline/s02-rtdbscan/CMakeLists.txt:17 (cuda_compile_and_embed):
  Unknown CMake command "cuda_compile_and_embed".


-- Configuring incomplete, errors occurred!
See also "/home/hphi344/Documents/GS-DBSCAN-Exp-Repos/OWLRayTracing/build/CMakeFiles/CMakeOutput.log".

My Ubuntu version is 20.04, and I'm using CUDA 11.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions