NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.47k stars 1.83k forks source link

Make failed in v12.3 for `cuDLALayerwiseStatsHybrid` and `cuDLALayerwiseStatsStandalone` #235

Closed mwfj closed 1 year ago

mwfj commented 1 year ago

When I try to compile the cuda-sample v12.3, two cases failed, and I have no idea how to deal with.

>>> GCC Version is greater or equal to 4.7.0 <<<
make[1]: *** No rule to make target 'main.cu', needed by 'main.o'.  Stop.
make[1]: Leaving directory '/home/mwfj/Downloads/cuda-samples-12.3/Samples/4_CUDA_Libraries/cuDLALayerwiseStatsHybrid'
make: *** [Makefile:45: Samples/4_CUDA_Libraries/cuDLALayerwiseStatsHybrid/Makefile.ph_build] Error 2
make[1]: Entering directory '/home/mwfj/Downloads/cuda-samples-12.3/Samples/4_CUDA_Libraries/cuDLALayerwiseStatsStandalone'
>>> WARNING - cuDLALayerwiseStatsStandalone is not supported on Linux x86_64 - waiving sample <<<
>>> WARNING - libnvscibuf.so not found, Waiving the sample <<<
>>> WARNING - libnvscisync.so not found, Waiving the sample <<<
>>> WARNING - nvscibuf.h not found, Waiving the sample <<<
>>> WARNING - nvscisync.h not found, Waiving the sample <<<
>>> GCC Version is greater or equal to 4.7.0 <<<
make[1]: *** No rule to make target 'main.cpp', needed by 'main.o'.  Stop.
make[1]: Leaving directory '/home/mwfj/Downloads/cuda-samples-12.3/Samples/4_CUDA_Libraries/cuDLALayerwiseStatsStandalone'
make: *** [Makefile:45: Samples/4_CUDA_Libraries/cuDLALayerwiseStatsStandalone/Makefile.ph_build] Error 2
mwfj@mwfj:/usr/local/cuda-12.3/lib64
$ ls | grep libnvscibuf
mwfj@mwfj:/usr/local/cuda-12.3/lib64
$ ls | grep libnvscisync

MY ENV

$ uname -r
6.5.0-1mx-ahs-amd64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm

$ g++ --version
g++ (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 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.

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Sep__8_19:17:24_PDT_2023
Cuda compilation tools, release 12.3, V12.3.52
Build cuda_12.3.r12.3/compiler.33281558_0
nzmsv commented 1 year ago

It looks like some files were not checked in with b5c84e699635946cfd4cf53fae2933f98ca2a077 by @rnertney? main.cpp is missing and I don't see how this target can be built without it.

rafalcode commented 1 year ago

compile schedule will fail and no more progs will be compiled, quick hack: delete these two projects and rerun make.

rnertney commented 1 year ago

Should have the files now!