# CUDA Toolkit not found with BinaryBuilder

**URL:** <https://discourse.julialang.org/t/cuda-toolkit-not-found-with-binarybuilder/119169>\
**Category:** General Usage\
**Tags:** cuda, binarybuilder\
**Created:** [September 7, 2024, 3:04pm UTC](https://discourse.julialang.org/t/cuda-toolkit-not-found-with-binarybuilder/119169 "2024-09-07T15:04:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Meziere](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jason_meziere/32/207966_2.png) [@Jason\_Meziere](https://discourse.julialang.org/u/Jason_Meziere)\
**Post date:** [September 7, 2024, 3:04pm UTC](https://discourse.julialang.org/t/cuda-toolkit-not-found-with-binarybuilder/119169/1 "2024-09-07T15:04:38Z")

</div>

I am attempting to add CUDA support to the LAMMPS installation in Yggdrasil. However, I have been having trouble getting CUDA implementations to successfully compile. After some investigation, I found that the `came` command `find_package(CUDA)` fails to locate the CUDA Toolkit. I have attempted to set the `CUDA_PATH` and `CUDA_HOME` environment variables. I have also tried setting `CMAKE_PREFIX_PATH`, `CMAKE_INSTALL_PREFIX`, `CUDA_TOOLKIT_ROOT_DIR`, and `CMAKE_CUDA_COMPILER`. None of these helped to locate the CUDA toolkit. Does anyone have an idea what I need to set to make the CUDA toolkit discoverable?
