Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: cuda_runtime_api.h: No such file or directory #2

Closed
azuryl opened this issue Mar 9, 2020 · 2 comments
Closed

fatal error: cuda_runtime_api.h: No such file or directory #2

azuryl opened this issue Mar 9, 2020 · 2 comments

Comments

@azuryl
Copy link

azuryl commented Mar 9, 2020

project/resnet/resnext50_32x4d.cpp:2:10: fatal error: cuda_runtime_api.h: No such file or directory
#include "cuda_runtime_api.h"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/resnext50.dir/build.make:62: recipe for target 'CMakeFiles/resnext50.dir/resnext50_32x4d.cpp.o' failed
make[2]: *** [CMakeFiles/resnext50.dir/resnext50_32x4d.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/resnext50.dir/all' failed
make[1]: *** [CMakeFiles/resnext50.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@wang-xinyu
Copy link
Owner

Hi,
pls check your cuda installation, ‘cuda_runtime_api.h’ is in /usr/local/cuda/include on my server.

user@user-SYS-7048GR:/usr/local/cuda/include$ ll cuda_runtime_api.h 
-rw-r--r-- 1 root root 401316 Sep 13  2018 cuda_runtime_api.h
user@user-SYS-7048GR:/usr/local/cuda/include$ 

@azuryl
Copy link
Author

azuryl commented Mar 9, 2020

fixed in CMakeLists.txt
include_directories(/usr/local/cuda-10.0/targets/aarch64-linux/include)
link_directories(/usr/local/cuda-10.0/targets/aarch64-linux/lib)

wang-xinyu pushed a commit that referenced this issue Apr 30, 2021
* Adding WideResnet C++  (#2)

* initialize wideresnet50

* add: wideresnet50 c++ code

* add: wide resnet python (#3)

* add: wide resnet python

* fix: typo

Co-authored-by: makaveli <39617050+makaveli10@users.noreply.github.com>

Co-authored-by: makaveli <39617050+makaveli10@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants