vanity icon indicating copy to clipboard operation
vanity copied to clipboard

nvcc fatal : Unsupported gpu architecture 'compute_89'

Open zlc1004 opened this issue 10 months ago • 9 comments

   Compiling fd_bs58 v0.1.0
warning: [email protected]: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\6123629083098385185detect_compiler_family.c"
warning: [email protected]: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\5335537772361023217detect_compiler_family.c"
warning: [email protected]: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\15447704080405464527detect_compiler_family.c"
warning: [email protected]: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\9521414419978384707detect_compiler_family.c"
warning: [email protected]: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-utils.o" "-c" "--device-c" "kernels/utils.cu"
warning: [email protected]: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-vanity.o" "-c" "--device-c" "kernels/vanity.cu"
warning: [email protected]: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-base58.o" "-c" "--device-c" "kernels/base58.cu"
warning: [email protected]: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-sha256.o" "-c" "--device-c" "kernels/sha256.cu"
error: failed to run custom build command for `vanity v0.4.0`

Caused by:
  process didn't exit successfully: `C:\Users\lucas\AppData\Local\Temp\cargo-installR0J5S9\release\build\vanity-fce09bb383ec3864\build-script-build` (exit code: 1)
  --- stdout
  cargo::rerun-if-changed=kernels/
  OUT_DIR = Some(C:\Users\lucas\AppData\Local\Temp\cargo-installR0J5S9\release\build\vanity-9833fe26a964f934\out)
  OPT_LEVEL = Some(3)
  TARGET = Some(x86_64-pc-windows-msvc)
  cargo:rerun-if-env-changed=VCINSTALLDIR
  VCINSTALLDIR = None
  cargo:rerun-if-env-changed=VSTEL_MSBuildProjectFullPath
  VSTEL_MSBuildProjectFullPath = None
  cargo:rerun-if-env-changed=VSCMD_ARG_VCVARS_SPECTRE
  VSCMD_ARG_VCVARS_SPECTRE = None
  cargo:rerun-if-env-changed=WindowsSdkDir
  WindowsSdkDir = None
  cargo:rerun-if-env-changed=WindowsSDKVersion
  WindowsSDKVersion = None
  cargo:rerun-if-env-changed=LIB
  LIB = None
  PATH = Some(C:\Users\lucas\AppData\Local\Temp\cargo-installR0J5S9\release\deps;C:\Users\lucas\AppData\Local\Temp\cargo-installR0J5S9\release;C:\Users\lucas\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib;C:\Users\lucas\miniconda3;C:\Users\lucas\miniconda3\Library\mingw-w64\bin;C:\Users\lucas\miniconda3\Library\usr\bin;C:\Users\lucas\miniconda3\Library\bin;C:\Users\lucas\miniconda3\Scripts;C:\Users\lucas\miniconda3\bin;C:\Users\lucas\miniconda3\condabin;C:\Program Files\FireDaemon OpenSSL 3\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Program Files\BellSoft\LibericaJDK-21\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;C:\Program Files\OpenLogic\jdk-8.0.402.06-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\nodejs;C:\Program Files\NASM;C:\MinGW\bin;C:\Program Files\Graphviz\bin;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.1;C:\Program Files\Go\bin;C:\Users\lucas\.cargo\bin;C:\Users\lucas\.local\share\solana\install\active_release\bin;C:\Users\lucas\miniconda3;C:\Users\lucas\miniconda3\Library\mingw-w64\bin;C:\Users\lucas\miniconda3\Library\usr\bin;C:\Users\lucas\miniconda3\Library\bin;C:\Users\lucas\miniconda3\Scripts;C:\Users\lucas\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\lucas\AppData\Local\Programs\Python\Python312;C:\Users\lucas\AppData\Local\Programs\Python\Launcher;C:\Users\lucas\AppData\Local\Microsoft\WindowsApps;C:\Users\lucas\AppData\Roaming\npm;C:\Program Files\NASM;C:\MinGW\bin;C:\Users\lucas\go\bin;C:\Users\lucas\AppData\Local\Programs\Microsoft VS Code\bin)
  cargo:rerun-if-env-changed=INCLUDE
  INCLUDE = None
  HOST = Some(x86_64-pc-windows-msvc)
  cargo:rerun-if-env-changed=CXX_x86_64-pc-windows-msvc
  CXX_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CXX_x86_64_pc_windows_msvc
  CXX_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=NVCC_x86_64-pc-windows-msvc
  NVCC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=NVCC_x86_64_pc_windows_msvc
  NVCC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_NVCC
  HOST_NVCC = None
  cargo:rerun-if-env-changed=NVCC
  NVCC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\6123629083098385185detect_compiler_family.c"
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,sse,sse2,sse3)
  DEBUG = Some(false)
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_pc_windows_msvc
  CXXFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-pc-windows-msvc
  CXXFLAGS_x86_64-pc-windows-msvc = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  nvcc fatal   : Unsupported gpu architecture 'compute_89'
  cargo:warning=Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\5335537772361023217detect_compiler_family.c"
  nvcc fatal   : Unsupported gpu architecture 'compute_89'
  cargo:warning=Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\15447704080405464527detect_compiler_family.c"
  nvcc fatal   : Unsupported gpu architecture 'compute_89'
  cargo:warning=Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-E" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\9521414419978384707detect_compiler_family.c"
  exit code: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-utils.o" "-c" "--device-c" "kernels/utils.cu"
  exit code: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-vanity.o" "-c" "--device-c" "kernels/vanity.cu"
  exit code: 1
  nvcc fatal   : Unsupported gpu architecture 'compute_89'
  cargo:warning=ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-base58.o" "-c" "--device-c" "kernels/base58.cu"
  exit code: 1
  cargo:warning=ToolExecError: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-sha256.o" "-c" "--device-c" "kernels/sha256.cu"

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit code: 1): "nvcc" "-ccbin=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\lucas\\AppData\\Local\\Temp\\cargo-installR0J5S9\\release\\build\\vanity-9833fe26a964f934\\out\\bded407966a33549-sha256.o" "-c" "--device-c" "kernels/sha256.cu"


warning: build failed, waiting for other jobs to finish...
error: failed to compile `vanity v0.4.0`, intermediate artifacts can be found at `C:\Users\lucas\AppData\Local\Temp\cargo-installR0J5S9`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

zlc1004 avatar Mar 04 '25 02:03 zlc1004

help 😭

zlc1004 avatar Mar 04 '25 02:03 zlc1004

Any one? Help 😭😭😭😭😭

zlc1004 avatar Mar 07 '25 03:03 zlc1004

Hi @zlc1004, What GPU are you using? As for the configurations in the build.rs file, it only supports the following GPUs:

  • NVIDIA RTX 6000 Ada
  • NVIDIA RTX 5000 Ada
  • NVIDIA RTX 4500 Ada
  • NVIDIA RTX 4000 Ada
  • NVIDIA RTX 4000 SFF Ada
  • NVIDIA RTX 2000 Ada
  • GeForce RTX 4090
  • GeForce RTX 4080
  • GeForce RTX 4070 Ti
  • GeForce RTX 4070
  • GeForce RTX 4060 Ti
  • GeForce RTX 4060
  • GeForce RTX 4050

If you have a different model of an NVIDIA GPU, you can find your CC version from their docs.

For example, if you have a RTX 3090, you need CC version 8.6, so just replace

This:

.flag("-gencode=arch=compute_89,code=sm_89")
.flag("-gencode=arch=compute_89,code=compute_89")

With:

.flag("-gencode=arch=compute_86, code=sm_86")
.flag("-gencode=arch=compute_86,code=compute_86")

Any one? Help 😭😭😭😭😭

bzm10 avatar Jul 31 '25 14:07 bzm10

Hi @zlc1004, What GPU are you using? As for the configurations in the build.rs file, it only supports the following GPUs:

  • NVIDIA RTX 6000 Ada
  • NVIDIA RTX 5000 Ada
  • NVIDIA RTX 4500 Ada
  • NVIDIA RTX 4000 Ada
  • NVIDIA RTX 4000 SFF Ada
  • NVIDIA RTX 2000 Ada
  • GeForce RTX 4090
  • GeForce RTX 4080
  • GeForce RTX 4070 Ti
  • GeForce RTX 4070
  • GeForce RTX 4060 Ti
  • GeForce RTX 4060
  • GeForce RTX 4050

If you have a different model of an NVIDIA GPU, you can find your CC version from their docs.

For example, if you have a RTX 3090, you need CC version 8.6, so just replace

This:

.flag("-gencode=arch=compute_89,code=sm_89")
.flag("-gencode=arch=compute_89,code=compute_89")

With:

.flag("-gencode=arch=compute_86, code=sm_86")
.flag("-gencode=arch=compute_86,code=compute_86")

Any one? Help 😭😭😭😭😭

I'm actually using a 4070 super. Is that supported?

zlc1004 avatar Aug 01 '25 11:08 zlc1004

Version 8.9 should work with the 4070 Super. I think the issue is that your CUDA version is too old.

I'm actually using a 4070 super. Is that supported?

bzm10 avatar Aug 03 '25 10:08 bzm10

Version 8.9 should work with the 4070 Super. I think the issue is that your CUDA version is too old.

I'm actually using a 4070 super. Is that supported?

Sorry for late reply

What's the cuda version you recommend?

zlc1004 avatar Aug 13 '25 11:08 zlc1004

The latest version should work for you.

bzm10 avatar Aug 17 '25 05:08 bzm10

im using version 12.1.

On Sat, Aug 16, 2025 at 10:20 PM Benjamin M @.***> wrote:

bzm10 left a comment (cavemanloverboy/vanity#13) https://github.com/cavemanloverboy/vanity/issues/13#issuecomment-3194139272

The latest version should work for you.

— Reply to this email directly, view it on GitHub https://github.com/cavemanloverboy/vanity/issues/13#issuecomment-3194139272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2DJUKQWWGIPKB6Z22KSUL3OAGIVAVCNFSM6AAAAABYIN5RPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJUGEZTSMRXGI . You are receiving this because you were mentioned.Message ID: @.***>

zlc1004 avatar Aug 17 '25 19:08 zlc1004

If this is the case, I am not sure what your issue is. Try reinstalling the drivers, or try running it on Linux.

bzm10 avatar Aug 18 '25 06:08 bzm10