Skip to content

empty CUDA_ARCHITECTURES not allowed #269

@vansin

Description

@vansin

My GPU is NVIDIA is 3060.
ubuntu: 18.04

(base) elaine@elaine-System-Product-Name:/project/mmlab_template/mmdeploy/build$ cmake .. \
>     -DCMAKE_CXX_COMPILER=g++-7 \
>     -DMMDEPLOY_BUILD_SDK=ON \
>     -DMMDEPLOY_BUILD_SDK_PYTHON_API=ON \
>     -DMMDEPLOY_TARGET_DEVICES="cuda;cpu" \
>     -DMMDEPLOY_TARGET_BACKENDS=trt \
>     -DMMDEPLOY_CODEBASES=all \
>     -Dpplcv_DIR=${PPLCV_DIR}/cuda-build/install/lib/cmake/ppl \
>     -DTENSORRT_DIR=${TENSORRT_DIR} \
>     -DCUDNN_DIR=${CUDNN_DIR}
-- CMAKE_INSTALL_PREFIX: /project/mmlab_template/mmdeploy/build/install
-- Build TensorRT custom ops.
-- Found TensorRT headers at /project/TensorRT-8.2.3.0/include
-- Found TensorRT libs at /project/TensorRT-8.2.3.0/lib/libnvinfer.so;/project/TensorRT-8.2.3.0/lib/libnvinfer_plugin.so
-- spdlog is found
-- Found TensorRT headers at /project/TensorRT-8.2.3.0/include
-- Found TensorRT libs at /project/TensorRT-8.2.3.0/lib/libnvinfer.so;/project/TensorRT-8.2.3.0/lib/libnvinfer_plugin.so
-- build codebase: mmcls
-- build codebase: mmdet
-- build codebase: mmseg
-- build codebase: mmocr
-- build codebase: mmedit
-- pybind11 v2.9.0 dev1
-- Configuring done
CMake Warning (dev) in csrc/net/trt/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 "mmdeploy_trt_net".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /project/mmlab_template/mmdeploy/build

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions