Skip to content

Commit

Permalink
Use CUDA_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed May 8, 2024
1 parent 5051f7f commit 89ab8c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cuda_ffi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
(c_library_flags
-lcuda
-I
/usr/local/cuda/include
%{env:CUDA_PATH=/usr/local/cuda}/include
-L
/usr/local/cuda/lib64/stubs)))
%{env:CUDA_PATH=/usr/local/cuda}/lib64/stubs)))
(headers
(include "cuda.h"))
(type_description
Expand Down
1 change: 0 additions & 1 deletion debug.log

This file was deleted.

4 changes: 2 additions & 2 deletions dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(env
(_
(c_flags -I /usr/local/cuda/include)
(link_flags -cclib -L/usr/local/cuda/lib64/stubs)))
(c_flags -I %{env:CUDA_PATH=/usr/local/cuda}/include)
(link_flags -cclib -L%{env:CUDA_PATH=/usr/local/cuda}/lib64/stubs)))

(library
(public_name cudajit)
Expand Down
4 changes: 2 additions & 2 deletions nvrtc_ffi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
(c_library_flags
-lnvrtc
-I
/usr/local/cuda/include
%{env:CUDA_PATH=/usr/local/cuda}/include
-L
/usr/local/cuda/lib64/stubs)))
%{env:CUDA_PATH=/usr/local/cuda}/lib64/stubs)))
(headers
(include "nvrtc.h"))
(type_description
Expand Down

0 comments on commit 89ab8c6

Please sign in to comment.