From 657ac9102291391da5f93cca86ef67a369efa4f4 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Fri, 18 Oct 2024 12:58:17 -0400 Subject: [PATCH 1/2] Add VectorInterface extensions to PackageCompilerExt --- Project.toml | 4 ++-- ext/ITensorsPackageCompilerExt/precompile_itensors.jl | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index a4f511869b..648f205332 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensors" uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5" authors = ["Matthew Fishman ", "Miles Stoudenmire "] -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" diff --git a/ext/ITensorsPackageCompilerExt/precompile_itensors.jl b/ext/ITensorsPackageCompilerExt/precompile_itensors.jl index 4d5d639359..3b7374a6ba 100644 --- a/ext/ITensorsPackageCompilerExt/precompile_itensors.jl +++ b/ext/ITensorsPackageCompilerExt/precompile_itensors.jl @@ -1,4 +1,6 @@ using ITensors.ITensorMPS: MPO, OpSum, dmrg, random_mps, siteinds +using VectorInterface: VectorInterface +include("$(@__DIR__)/../ITensorsVectorInterfaceExt/ITensorsVectorInterfaceExt.jl") # TODO: This uses all of the tests to make # precompile statements, but takes a long time From 89317729353c8e947edd716dba1684539a74d427 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Fri, 18 Oct 2024 15:54:57 -0400 Subject: [PATCH 2/2] Remove using statement --- ext/ITensorsPackageCompilerExt/precompile_itensors.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/ITensorsPackageCompilerExt/precompile_itensors.jl b/ext/ITensorsPackageCompilerExt/precompile_itensors.jl index 3b7374a6ba..830ef5544b 100644 --- a/ext/ITensorsPackageCompilerExt/precompile_itensors.jl +++ b/ext/ITensorsPackageCompilerExt/precompile_itensors.jl @@ -1,5 +1,4 @@ using ITensors.ITensorMPS: MPO, OpSum, dmrg, random_mps, siteinds -using VectorInterface: VectorInterface include("$(@__DIR__)/../ITensorsVectorInterfaceExt/ITensorsVectorInterfaceExt.jl") # TODO: This uses all of the tests to make