-
Notifications
You must be signed in to change notification settings - Fork 125
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
[ITensors] Fix ITensorsPackageCompilerExt
precompile issue
#1549
Closed
kmp5VT
wants to merge
2
commits into
ITensor:main
from
kmp5VT:kmp5/debug/precomile_packagecompiler_j11
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "ITensors" | ||
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5" | ||
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"] | ||
version = "0.6.21" | ||
version = "0.6.22" | ||
|
||
[deps] | ||
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" | ||
|
@@ -39,7 +39,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444" | |
[extensions] | ||
ITensorsHDF5Ext = "HDF5" | ||
ITensorsObserversExt = "Observers" | ||
ITensorsPackageCompilerExt = "PackageCompiler" | ||
ITensorsPackageCompilerExt = ["PackageCompiler", "VectorInterface"] | ||
ITensorsVectorInterfaceExt = "VectorInterface" | ||
ITensorsZygoteRulesExt = "ZygoteRules" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look like a good idea to do. Does it work if you load
VectorInterface.jl
to trigger the extension to load, i.e. add the line:It seems weird that we would have to do that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see in #1548 (comment) you said you already tried that and it didn't work.
The confusing part to me, and maybe what is causing problems here for some reason, is that
VectorInterface.jl
is a dependency ofKrylovKit.jl
, andKrylovKit.jl
is a dependency ofITensors.jl
, soITensorsVectorInterfaceExt
should get loaded automatically. So there is something strange happening with the order that the packages/extensions get loaded, I suspect it is a bug in Julia and/or Pkg.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something you could try is adding
VectorInterface.jl
as a dependency ofITensors.jl
directly and see if that forcesITensorsVectorInterfaceExt
to get loaded. It's implicitly a dependency anyway, as I described, so it shouldn't be a problem adding it as a dependency, though it seems like a bug that we would have to do that.One reason I made
ITensorsVectorInterfaceExt
is because when we moveITensors.ITensorMPS
toITensorMPS.jl
,KrylovKit.jl
andVectorInterface.jl
will no longer be dependencies ofITensors.jl
, so that extension was anticipating that code reorganization. But if it is causing problems that we can't circumvent right now we could moveITensorsVectorInterfaceExt
intoITensors.jl
and turnVectorInterface.jl
into a dependency.