-
-
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 #122 from SciML/cuda
[WIP] Setup DiffEqGPU integration
- Loading branch information
Showing
7 changed files
with
291 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
amdgpu, _ = load_julia_packages("DiffEqGPU, AMDGPU") | ||
from juliacall import Main | ||
de.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
cuda, _ = load_julia_packages("DiffEqGPU, CUDA") | ||
from juliacall import Main | ||
de.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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
metal, _ = load_julia_packages("DiffEqGPU, Metal") | ||
from juliacall import Main | ||
de.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
from . import load_julia_packages | ||
oneapi, _ = load_julia_packages("DiffEqGPU, oneAPI") | ||
from juliacall import Main | ||
de.oneAPIBackend = Main.seval("oneAPI.oneAPIBackend") # kinda hacky | ||
sys.modules[__name__] = oneapi # 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ def readme(): | |
return f.read() | ||
|
||
setup(name='diffeqpy', | ||
version='2.1.0', | ||
version='2.2.0', | ||
description='Solving Differential Equations in Python', | ||
long_description=readme(), | ||
long_description_content_type="text/markdown", | ||
|
@@ -19,7 +19,7 @@ def readme(): | |
'Topic :: Scientific/Engineering :: Physics' | ||
], | ||
url='http://github.com/SciML/diffeqpy', | ||
keywords='differential equations stochastic ordinary delay differential-algebraic dae ode sde dde', | ||
keywords='differential equations stochastic ordinary delay differential-algebraic dae ode sde dde oneapi AMD ROCm CUDA Metal GPU', | ||
author='Chris Rackauckas and Takafumi Arakaki', | ||
author_email='[email protected]', | ||
license='MIT', | ||
|