-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from LilithHafner/lh/install
Make package installation automatic and deprecate manual installation
- Loading branch information
Showing
13 changed files
with
70 additions
and
60 deletions.
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
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
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,6 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
amdgpu, _ = load_julia_packages("DiffEqGPU, AMDGPU") | ||
amdgpu, _ = load_julia_packages("DiffEqGPU", "AMDGPU") | ||
from juliacall import Main | ||
amdgpu.AMDGPUBackend = Main.seval("AMDGPU.AMDGPUBackend") # kinda hacky | ||
sys.modules[__name__] = amdgpu # mutate myself |
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,6 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
cuda, _ = load_julia_packages("DiffEqGPU, CUDA") | ||
cuda, _ = load_julia_packages("DiffEqGPU", "CUDA") | ||
from juliacall import Main | ||
cuda.CUDABackend = Main.seval("CUDA.CUDABackend") # kinda hacky | ||
sys.modules[__name__] = cuda # mutate myself |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,6 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
metal, _ = load_julia_packages("DiffEqGPU, Metal") | ||
metal, _ = load_julia_packages("DiffEqGPU", "Metal") | ||
from juliacall import Main | ||
metal.MetalBackend = Main.seval("Metal.MetalBackend") # kinda hacky | ||
sys.modules[__name__] = metal # mutate myself |
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,3 +1,4 @@ | ||
import sys | ||
from . import load_julia_packages | ||
sys.modules[__name__] = load_julia_packages("OrdinaryDiffEq") # mutate myself | ||
ode, _ = load_julia_packages("OrdinaryDiffEq", "PythonCall") | ||
sys.modules[__name__] = ode # mutate myself |
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,6 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
oneapi, _ = load_julia_packages("DiffEqGPU, oneAPI") | ||
oneapi, _ = load_julia_packages("DiffEqGPU", "oneAPI") | ||
from juliacall import Main | ||
oneapi.oneAPIBackend = Main.seval("oneAPI.oneAPIBackend") # kinda hacky | ||
sys.modules[__name__] = oneapi # mutate myself |