Skip to content

Commit

Permalink
[ITensorsPackageCompilerExt] Superseding indictment of ITensorsPackag…
Browse files Browse the repository at this point in the history
…eCompilerExt (#1550)
  • Loading branch information
mtfishman authored Oct 20, 2024
1 parent aa26798 commit 5fb4696
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
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 <mfishman@flatironinstitute.org>", "Miles Stoudenmire <mstoudenmire@flatironinstitute.org>"]
version = "0.6.21"
version = "0.6.22"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module ITensorsPackageCompilerExt
include("compile.jl")
include("precompile_itensors.jl")
end
6 changes: 0 additions & 6 deletions src/packagecompile/compile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ function compile(; backend=Algorithm"PackageCompiler"(), kwargs...)
return compile(backend; kwargs...)
end

function compile(::Algorithm; kwargs...)
return error(
"As of ITensors v0.5, you must install `PackageCompiler.jl` (`using Pkg: Pkg; Pkg.add(\"PackageCompiler\")`) and execute `using PackageCompiler` to use `ITensors.compile`.",
)
end

@doc """
ITensors.compile(; dir = "$(default_compile_dir())",
filename = "$(default_compile_filename())")
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
OptimKit = "77e91f04-9b3b-57a6-a776-40b61faaebe0"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
4 changes: 4 additions & 0 deletions test/ext/ITensorsPackageCompilerExt/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[deps]
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10 changes: 10 additions & 0 deletions test/ext/ITensorsPackageCompilerExt/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@eval module $(gensym())
using ITensors: ITensors
using PackageCompiler: PackageCompiler
using Test: @testset, @test
@testset "ITensorsPackageCompilerExt" begin
# Testing `ITensors.compile` would take too long so we just check
# that `ITensorsPackageCompilerExt` overloads `ITensors.compile`.
@test hasmethod(ITensors.compile, Tuple{ITensors.Algorithm"PackageCompiler"})
end
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ITensors.disable_threaded_blocksparse()
"threading",
"lib/ContractionSequenceOptimization",
"ext/ITensorsChainRulesCoreExt",
"ext/ITensorsPackageCompilerExt",
"ext/ITensorsVectorInterfaceExt",
]
@time for dir in dirs
Expand Down

2 comments on commit 5fb4696

@mtfishman
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/117662

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.22 -m "<description of version>" 5fb4696f2c290d86aab03fcc8358d55eacd0e174
git push origin v0.6.22

Please sign in to comment.