Skip to content

Commit 262583f

Browse files
committed
Add details about CMAKE_ARGS
1 parent 0e75041 commit 262583f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/maintainer/knowledge_base.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,13 @@ In practice, to enable CUDA on your package, add ``{{ compiler('cuda') }}`` to t
11571157
section of your requirements and rerender. The matching ``cudatoolkit`` will be added to the ``run``
11581158
requirements automatically.
11591159

1160+
On Linux, CMake users are required to use ``${CMAKE_ARGS}`` so CMake can find CUDA correctly. For example::
1161+
1162+
mkdir build && cd build
1163+
cmake ${CMAKE_ARGS} ${SRC_DIR}
1164+
make
1165+
1166+
11601167
.. note::
11611168

11621169
**How is CUDA provided at the system level?**

0 commit comments

Comments
 (0)