Skip to content

build error on cuda 12.6 platform #35

@gaowayne

Description

@gaowayne

hello expert

could you please help take a look this code? it failed to build now.

root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# make benchmarks
[ 29%] Built target libnvm
[ 33%] Building NVCC (Device) object benchmarks/latency/CMakeFiles/latency-benchmark-module.dir/src/latency-benchmark-module_generated_host.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_30'
CMake Error at latency-benchmark-module_generated_host.cu.o.cmake:218 (message):
  Error generating
  /mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build/benchmarks/latency/CMakeFiles/latency-benchmark-module.dir/src/./latency-benchmark-module_generated_host.cu.o


make[3]: *** [benchmarks/latency/CMakeFiles/latency-benchmark-module.dir/build.make:84: benchmarks/latency/CMakeFiles/latency-benchmark-module.dir/src/latency-benchmark-module_generated_host.cu.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:926: benchmarks/latency/CMakeFiles/latency-benchmark-module.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:383: CMakeFiles/benchmarks.dir/rule] Error 2
make: *** [Makefile:221: benchmarks] Error 2
root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# 

root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# nvidia-smi
Sun Sep 14 02:39:42 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.05              Driver Version: 560.35.05      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| 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 L40S                    Off |   00000000:8A:00.0 Off |                    0 |
| N/A   38C    P0             80W /  350W |     520MiB /  46068MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      3105      G   /usr/lib/xorg/Xorg                              4MiB |
|    0   N/A  N/A    175045      C   ...e/bam/build/bin/direct-4k-read-demo        498MiB |
+-----------------------------------------------------------------------------------------+
root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# 
root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# uname -a
Linux salab-hpedl380g11-01 5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@salab-hpedl380g11-01:/mnt/nvme4n1/wayne/bam/ssd-gpu-dma/build# 

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