mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-09-14 19:22:17 +02:00
feat(common): add imports for HIP 2d arrays
This commit is contained in:
parent
01b39cc9b4
commit
c549556c36
@ -1,11 +1,10 @@
|
||||
from os import environ
|
||||
|
||||
# TODO this is temporary, remove
|
||||
from .cuda import *
|
||||
|
||||
__env_name = 'GPU_LANG'
|
||||
|
||||
if __env_name in environ and environ.get(__env_name).lower() == "cuda":
|
||||
from .cuda import *
|
||||
else:
|
||||
from .hip import *
|
||||
from .hip import *
|
||||
# TODO this is temporary, remove
|
||||
from .cuda import array3d
|
Loading…
x
Reference in New Issue
Block a user