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

Compile problem #50

Closed
DanielChungYi opened this issue Sep 5, 2019 · 1 comment
Closed

Compile problem #50

DanielChungYi opened this issue Sep 5, 2019 · 1 comment

Comments

@DanielChungYi
Copy link

[ 40%] Building CXX object CMakeFiles/sysDetectSpeed.dir/box.cpp.o
[ 50%] Building CXX object CMakeFiles/sysDetectSpeed.dir/image.cpp.o
[ 70%] Building CXX object CMakeFiles/sysDetectSpeed.dir/yolo_layer.cpp.o
[ 70%] Building CXX object CMakeFiles/sysDetectSpeed.dir/cuda.cpp.o
/home/user/daniel_ws/caffe-yolov3-master/cuda.cpp: In function 'dim3 cuda_gridsize(size_t)':
/home/user/daniel_ws/caffe-yolov3-master/cuda.cpp:53:22: warning: narrowing conversion of 'x' from 'size_t {aka long unsigned int}' to 'unsigned int' inside { } [-Wnarrowing]
dim3 d = {x, y, 1};
^
/home/user/daniel_ws/caffe-yolov3-master/cuda.cpp:53:22: warning: narrowing conversion of 'y' from 'size_t {aka long unsigned int}' to 'unsigned int' inside { } [-Wnarrowing]
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sysDetectSpeed.dir/all' failed
make[1]: *** [CMakeFiles/sysDetectSpeed.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@DanielChungYi
Copy link
Author

Problem fixed by modified cuda.cpp
擷取

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

1 participant