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
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
Currently, if you use the cuda-nvcc_{platform} package in an environment, it will try to detect if you don't have host compilers installed and warn you. This happens here:
echo'cuda-nvcc: Please add the `compiler("c")` and `compiler("cxx")` packages to the environment.'
ERROR=true
.
This makes sense when in the context of a conda build but not for a user in an environment. For a user in an environment, we should probably point them towards the c-compiler and cxx-compiler packages to maintain the current behavior.
I've worked around this for now by setting the CXX and CC environment variables to an activation script in my environment with something that looks like:
export CC=`which gcc`export CXX=`which g++`
Installed packages
n/a
Environment info
n/a
The text was updated successfully, but these errors were encountered:
Solution to issue cannot be found in the documentation.
Issue
Currently, if you use the
cuda-nvcc_{platform}
package in an environment, it will try to detect if you don't have host compilers installed and warn you. This happens here:cuda-nvcc-feedstock/recipe/activate.sh
Lines 33 to 35 in a1a69ae
This makes sense when in the context of a conda build but not for a user in an environment. For a user in an environment, we should probably point them towards the
c-compiler
andcxx-compiler
packages to maintain the current behavior.Additionally, I intentionally avoid the
c-compiler
andcxx-compiler
packages in my development environment because they set a bunch of compiler flags that I don't necessarily want (see https://github.com/conda-forge/ctng-compiler-activation-feedstock/blob/main/recipe/conda_build_config.yaml and https://github.com/conda-forge/ctng-compiler-activation-feedstock/blob/main/recipe/activate-gcc.sh). I do have thegcc
andgxx
packages installed which give me a set of host compilers to use.I've worked around this for now by setting the
CXX
andCC
environment variables to an activation script in my environment with something that looks like:Installed packages
Environment info
The text was updated successfully, but these errors were encountered: