Open OliverDudgeon opened 1 month ago
Hi Oliver,
I have to admit I've never seen this before, and I am not entirely sure what's going wrong here. In principle, I would have expected that the extension does not get loaded at all, considering you do not have cuTENSOR loaded(?). Can you check what happens if you remove cuTENSOR
from the [extras]
section of your Project.toml?
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 cuTENSOR
which then triggers both my package extension and TensorOperationscuTENSORExt to load/precompile. This still happens if I remove CUDA and cuTENSOR from [extras]
. I'll see if I can put together a minimal example.
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: