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

nvcc fatal : Unsupported gpu architecture 'compute_86' #410

Open
YHuniv opened this issue May 3, 2023 · 1 comment
Open

nvcc fatal : Unsupported gpu architecture 'compute_86' #410

YHuniv opened this issue May 3, 2023 · 1 comment
Labels

Comments

@YHuniv
Copy link

YHuniv commented May 3, 2023

CMake Error at darknet_ros_lib_generated_maxpool_layer_kernels.cu.o.Release.cmake:220 (message):

To Reproduce
Steps to reproduce the behavior: (I am using RTX 3060 Ti)

I added -gencode arch=compute_86,code=sm_86 in 👍
set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS};
-O3
...
-gencode arch=compute_86,code=sm_86
)
after that :

cd catkin_ws
catkin_make -DCMAKE_BUILD_TYPE=Release

System (please complete the following information):

  • OS: [Ubuntu 20.04]
  • ROS version: [ Noetic]
  • GPU : [ RTX 3060 Ti]

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

nvidia-smi
Wed May 3 11:38:28 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17 Driver Version: 525.105.17 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:06:00.0 On | N/A |
| 0% 38C P8 12W / 200W | 282MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1093 G /usr/lib/xorg/Xorg 88MiB |
| 0 N/A N/A 1381 G /usr/bin/gnome-shell 72MiB |
| 0 N/A N/A 1844 G /usr/lib/firefox/firefox 118MiB |
+-----------------------------------------------------------------------------+

any help ?
thanks by advance

@YHuniv YHuniv added the question label May 3, 2023
@YHuniv
Copy link
Author

YHuniv commented May 4, 2023

Problem resolved by having same cuda verions from the nvcc --version and nvidia-smi, in my case a added this ligne de the ~/.bashrc :
export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

nvidia-smi
Thu May 4 09:28:13 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3060 Ti On | 00000000:06:00.0 Off | N/A |
| 0% 37C P8 11W / 200W| 290MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1092 G /usr/lib/xorg/Xorg 106MiB |
| 0 N/A N/A 1354 G /usr/bin/gnome-shell 32MiB |
| 0 N/A N/A 1949 G /usr/lib/firefox/firefox 149MiB |
+---------------------------------------------------------------------------------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant