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

build on jetson orin #348

Open
SuperElectron opened this issue Jun 25, 2024 · 0 comments
Open

build on jetson orin #348

SuperElectron opened this issue Jun 25, 2024 · 0 comments

Comments

@SuperElectron
Copy link

SuperElectron commented Jun 25, 2024

I am trying to build this on jetson orin nano


$ ls /opt/nvidia/deepstream
deepstream  deepstream-6.4
$ ls /usr/local | grep cuda
cuda
cuda-12
cuda-12.2

$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ cd /tmp && git clone -b 20.03 --depth 1 https://github.com/NVIDIA/retinanet-examples.git && cd retinanet-examples/extras/cppapi && mkdir build && cd build

/tmp/retinanet-examples/extras/cppapi/build $ cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.2 -D CMAKE_CUDA_FLAGS="--expt-extended-lambda -std=c++11" ..

-- The CXX compiler identification is GNU 11.4.0
-- 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.2.140
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda-12.2/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Configuring done
CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
  for policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  CUDA_ARCHITECTURES is empty for target "retinanet".
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
  for policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  CUDA_ARCHITECTURES is empty for target "retinanet".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /tmp/retinanet-examples/extras/cppapi/build

/tmp/retinanet-examples/extras/cppapi/build $ make
[  7%] Building CUDA object CMakeFiles/retinanet.dir/tmp/retinanet-examples/csrc/cuda/decode.cu.o
nvcc warning : incompatible redefinition for option 'std', the last value of this option was used
/tmp/retinanet-examples/csrc/cuda/decode.cu:36:10: fatal error: thrust/system/cuda/detail/cub/device/device_radix_sort.cuh: No such file or directory
   36 | #include <thrust/system/cuda/detail/cub/device/device_radix_sort.cuh>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/retinanet.dir/build.make:76: CMakeFiles/retinanet.dir/tmp/retinanet-examples/csrc/cuda/decode.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:89: CMakeFiles/retinanet.dir/all] Error 2
make: *** [Makefile:91: all] Error 2




Questions

  1. Is this supported on deepstream 6.4?
  2. Are there any suggestions to fixing the error? (use a docker container, command lines, installations before build, build flags)

Thanks in advance

@SuperElectron SuperElectron changed the title build on jetson build on jetson orin Jun 25, 2024
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