Attempting to make CUDA files in the latest release of the Accelerated Computing Teaching Kit on a Nano

In Mod 02, the CUDA Compiles on my Jetson Nano, but when I execute it fails with

./a.out
-1447265283
-1862269955
-1459496972
-1879047724
-1879047723
-1862237548
-1862270283
-1459429386
-887815532
-117432328
Cuda failure main.cu:33: ‘initialization error’

Reducing the N has no effect
The same error occurs on all of the Example code both original and solution in Mod 02

Has anyone been able to build and execute the Accelerated Computing Teaching Kit on a Nano? If so, what did you need to change to get it to run? Appears to Build, but not run

Hi,

Please check the CMakeLists.txt file and add the Nano GPU architecture (5.3) into ARCH_FLAGS.

...
# For some MPs it may be necessary to specify the compute capability of your
# NVIDIA GPU. In that case, simply uncomment the following two lines that start
# with 'set' and change the value of COMPUTE_CAPABILITY to one of the following
# hardware architectures: Tesla-class '11', '12', or '13'; Fermi-class '20'
# or '21'; Kepler-class '30', '32', '35'; or Maxwell-class '50' or '52'
CUDA_SELECT_NVCC_ARCH_FLAGS(ARCH_FLAGS 3.0 3.5+PTX 5.0 Maxwell 6.1)
list(APPEND CUDA_NVCC_FLAGS ${ARCH_FLAGS})
...

Thanks.

Thank you for the quick response!!!

I now see that in GPU-Teaching-Kit-Accelerated-Computing.zip there is no CMakeLists.txt file at least in any of the parent folders of the Modules.
I had run CCMake to generate the make files without it so it did did not have the section containing CMAKE_CUDA_ARCHITECTURES causing this issue.

There is a CMakeLists.txt is the previous release called gputeachingkitslabs but I am concerned that it might not be correct for this release.

Should I use the CMakeLists.txt from the prior release, or is there one available for this release?

Cheers
Doug

Hi,

Would you mind sharing your GPU-Teaching-Kit-Accelerated-Computing.zip so we can check?
You can share it via private message or attach it here.

Thanks.

GPU-Teaching-Kit-Accelerated-Computing.zip
Hi AastaLLL

Certainly!

The GPU-Teaching-Kit-Accelerated-Computing.zip created June 11 had the labs in a separate zip called nvidia-dli-gputeachingkit-labs-852e9d96263a.zip created June 16

When I try to attach that file to this email, google gmail is blocking it!
image.png

That zip had a CMakeLists.txt file dated 5/5

The latest zip of GPU-Teaching-Kit-Accelerated-Computing.zip is dated 9/15

Has the Labs with subfolders for original and solution under each of the Modules as a separate zip file

However, I cannot find anywhere within the latest zip of GPU-Teaching-Kit-Accelerated-Computing a CMakeLists.txt file!

I am trying to use a NVIDIA Jetson Nano as the target for a new Certificate based course called “Hands On GPU Programming” and need to be able to create videos showing students how to do the labs

I’d really like to be able to use NSight in VS Code to develop this course material

Cheers

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Thanks for sharing the file.

However, we cannot download the data due to authority.
Could you give it a check and enable the permission?

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.