# Why is my helper\_cuda.h cannot be found ?

**URL:** <https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738>\
**Category:** Jetson Nano\
**Created:** [April 26, 2019, 2:48am UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738 "2019-04-26T02:48:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leey10](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@leey10](https://forums.developer.nvidia.com/u/leey10)\
**Post date:** [April 26, 2019, 2:48am UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738/1 "2019-04-26T02:48:11Z")

</div>

Dear community,  
I am trying to run the CUDA examples on the Jetson nano, here is what I have done:

1. /usr/local/cuda-10.0/bin/cuda-install-samples-10.0.sh

2. add the following lines to /home/.bashrc (or nvcc cannot be found)  
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$  
export LD\_LIBRARY\_PATH=/usr/local/cuda-10.0/lib64${LD\_LIBRARY\_PATH:+:${LD\_LIBRARY\_PATH}}

3. add path to the Makefile of the project I want to run:

4. $ make the project, generate ~.o  
/usr/local/cuda-10.0/bin/nvcc -ccbin g++ -I/home/jetbot/Documents/CUDA\_Prj/NVIDIA\_CUDA-10.0\_Samples/common/inc -m64 -gencode arch=compute\_30,code=sm\_30 -gencode arch=compute\_32,code=sm\_32 -gencode arch=compute\_53,code=sm\_53 -gencode arch=compute\_61,code=sm\_61 -gencode arch=compute\_62,code=sm\_62 -gencode arch=compute\_70,code=sm\_70 -gencode arch=compute\_72,code=sm\_72 -gencode arch=compute\_75,code=sm\_75 -gencode arch=compute\_75,code=compute\_75 -o asyncAPI.o -c asyncAPI.cu  
/usr/local/cuda-10.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute\_30,code=sm\_30 -gencode arch=compute\_32,code=sm\_32 -gencode arch=compute\_53,code=sm\_53 -gencode arch=compute\_61,code=sm\_61 -gencode arch=compute\_62,code=sm\_62 -gencode arch=compute\_70,code=sm\_70 -gencode arch=compute\_72,code=sm\_72 -gencode arch=compute\_75,code=sm\_75 -gencode arch=compute\_75,code=compute\_75 -o asyncAPI asyncAPI.o  
mkdir -p ../../bin/aarch64/linux/release  
cp asyncAPI ../../bin/aarch64/linux/release

5. $ nvcc ~.cu

Then I got error : helper\_cuda.h cannot be found. I googled the problem, most of answers are step 3, but not working for me. Could anyone help me on the issue? Thanks for help!

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [April 26, 2019, 6:22am UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738/2 "2019-04-26T06:22:44Z")

</div>

Hi,

CUDA sample can be compiled with the following commands:

```auto
/usr/local/cuda-10.0/bin/cuda-install-samples-10.0.sh .
cd NVIDIA_CUDA-10.0_Samples/
make

```

You don’t need to execute step-5. To execute the predefined _makefile_ should be enough.

For fixing the _helper\_cuda.h_ error, please update the command to:

```auto
nvcc -I/home/jetbot/Documents/CUDA_Prj/NVIDIA_CUDA-10.0_Samples/common/inc ...

```

Thanks.

---

<div class="post-metadata">

**Author:** ![leey10](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@leey10](https://forums.developer.nvidia.com/u/leey10)\
**Post date:** [April 26, 2019, 3:33pm UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738/3 "2019-04-26T15:33:08Z")

</div>

Hi AastaLLL,  
Thanks for reply! But I didn’t get it, do you mean directly run the following ? I tried this but it fails again.

$ nvcc -I/home/jetbot/Documents/CUDA\_Prj/NVIDIA\_CUDA-10.0\_Samples/common/inc

However, I tried

$ nvcc ~.o (instead of ~.cu)

and it seems worked,could you comment if this is the right way to do it? Thank you!

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [April 29, 2019, 1:48am UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738/4 "2019-04-29T01:48:48Z")

</div>

Hi,

It’s recommended to use the default _Makefile_.  
All the dependencies and options are added and test.

Just type the _make_ on the example folder you want.

```auto
/usr/local/cuda-10.0/bin/cuda-install-samples-10.0.sh .
cd NVIDIA_CUDA-10.0_Samples/
make

```

Thanks.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:44pm UTC](https://forums.developer.nvidia.com/t/why-is-my-helper-cuda-h-cannot-be-found/73738/5 "2021-10-18T17:44:01Z")

</div>

Closed on October 18, 2021, 5:44pm UTC


