-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TensorOperationscuTENSORExt fails to compile #174
Comments
Hi Oliver, I could try and have a look, but I would need something reproducible to dig a bit deeper. |
Sorry I forgot to mention this error occurs when loading |
This sounds like it might be something about package extensions, if you get a minimal example it might be reasonable to submit an issue to the Julia repo as well |
... |
Hi,
I'm running into a strange problem with the
TensorOperations
cuTENSOR
package extension. It will fail to compile with this specific package setup.I have a package (lets call it
MyPackage
) that depends onTensorOperations
but is generic and doesn't requireCUDA
. ThenMyPackage
has a package extension calledMyPackageCUDAExt
which hasCUDA
(but notcuTENSOR
) as a dependency. When loading this packageusing MyPackage
with theMyPackage
environment activated, precompilation ofTensorOperations
fails.I tried disabling precompilation with
ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0
but this doesn't appear to stop precompilation of package extensions. Additionally, execution fails but the traceback doesn't enter TensorOperations. But this only happens alongside the failed precompilation.If I create a temporary environment with
]activate --temp
and addCUDA
,cuTENSOR
and]dev MyPackage
then loadingTensorOperations
runs as expected. So it's only a problem when loading TensorOperations from within an environment that itself defines a package extension with a dependency on CUDA.Is there something I'm doing wrong with my package setup or is something else going on?
Thank you!
Project.toml:
The text was updated successfully, but these errors were encountered: