You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The post-link recipe suggests that conda install cudatoolkit-dev will symlink all libraries, binaries and header files to $CONDA_PREFIX/lib, $CONDA_PREFIX/bin and $CONDA_PREFIX/include respectively. That's great, because now I can just use these directories instead of individually specifying each and every directory in $CONDA_PREFIX/pkgs/cuda-toolkit.
However, the issue still remains that I have to manually add these paths to the respective environment variables (CUDA_HOME, LD_LIBRARY_PATH, etc) to be able to fully use them. conda install cudatoolkit-dev doesn't do that for me. As an example, if I wish to compile a custom CUDA extension with pytorch, I can't do this out of the box because GCC will complain about missing header files (cublas_v2.h, etc). I either have to manually specify -I$(CONDA_PREFIX)/include while using GCC, or set the environment variable CPATH (export CPATH=$CONDA_PREFIX/include).
Since the post install script already consolidates all libs, bins and include files, I wonder whether it also intends to modify environment variables? If not, what's the recommended way? Do I have to set environment variables manually, or should conda install cudatoolkit-dev automatically do that for me?
Declaration
Issue
The post-link recipe suggests that
conda install cudatoolkit-dev
will symlink all libraries, binaries and header files to$CONDA_PREFIX/lib
,$CONDA_PREFIX/bin
and$CONDA_PREFIX/include
respectively. That's great, because now I can just use these directories instead of individually specifying each and every directory in$CONDA_PREFIX/pkgs/cuda-toolkit
.However, the issue still remains that I have to manually add these paths to the respective environment variables (
CUDA_HOME
,LD_LIBRARY_PATH
, etc) to be able to fully use them.conda install cudatoolkit-dev
doesn't do that for me. As an example, if I wish to compile a custom CUDA extension with pytorch, I can't do this out of the box because GCC will complain about missing header files (cublas_v2.h
, etc). I either have to manually specify-I$(CONDA_PREFIX)/include
while using GCC, or set the environment variableCPATH
(export CPATH=$CONDA_PREFIX/include
).Since the post install script already consolidates all libs, bins and include files, I wonder whether it also intends to modify environment variables? If not, what's the recommended way? Do I have to set environment variables manually, or should
conda install cudatoolkit-dev
automatically do that for me?Details about
conda
environment (conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: