Running into Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS) (found version "12.6")
Error with CUDA 12.6
#56
Labels
bug
Something isn't working
Solution to issue cannot be found in the documentation.
Issue
We are trying to build FBGEMM against the CUDA 12.6 (pytorch/FBGEMM#3503), and are running into the following error:
For some context:
All of our builds and tests are performed inside a Conda environment, and all of the tool chains and dependencies that we use (gcc, clang, torch, CUDA) are installed from scratch using
conda install
, for maximum environment isolation and build reproducibility. We have been successfully building FBGEMM against CUDA 11.7, 11.8, 12.1, and 12.4 for a while now, and have been able to rigorously document the full build process here.We usually install the full CUDA metapackage, i.e.
We did notice that for CUDA 12.6, when we look for
cuda.h
, we see:whereas with CUDA 12.4, we have:
and with CUDA 11.8, we have:
In other words, the CUDA headers do not appear to be installed onto
$CONDA_PREFIX/include
. It seems to me at least that conda install process for CUDA 12.6 is incorrect, or has been updated in a way that CMake is unable to find the path.My questions are:
$CONDA_PREFIX/include
to$CONDA_PREFIX/targets/x86_64-linux/include
) expected?CUDA_INCLUDE_DIRS
and/orCUDA_TOOLKIT_ROOT_DIR
? I've read from here and here that we should manually setCUDA_TOOLKIT_ROOT_DIR
, but those apply to non-Conda installations of CUDA, where everything is in one directory.Installed packages
Environment info
The text was updated successfully, but these errors were encountered: