Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
d8669b08
Commit
d8669b08
authored
May 26, 2022
by
aiss
Browse files
modify dtk path
parent
7d1a83a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
deepspeed/ops/op_builder/builder.py
deepspeed/ops/op_builder/builder.py
+1
-1
op_builder/builder.py
op_builder/builder.py
+1
-1
No files found.
deepspeed/ops/op_builder/builder.py
View file @
d8669b08
...
@@ -190,7 +190,7 @@ class OpBuilder(ABC):
...
@@ -190,7 +190,7 @@ class OpBuilder(ABC):
if
OpBuilder
.
is_rocm_pytorch
():
if
OpBuilder
.
is_rocm_pytorch
():
from
torch.utils.cpp_extension
import
ROCM_HOME
from
torch.utils.cpp_extension
import
ROCM_HOME
#with open('/opt/rocm/.info/version-dev', 'r') as file:
#with open('/opt/rocm/.info/version-dev', 'r') as file:
with
open
(
'/
public/home/aiss/2022/dtk-21.10.1
/.info/version-dev'
,
'r'
)
as
file
:
with
open
(
'/
opt/dtk-22.04
/.info/version-dev'
,
'r'
)
as
file
:
ROCM_VERSION_DEV_RAW
=
file
.
read
()
ROCM_VERSION_DEV_RAW
=
file
.
read
()
ROCM_MAJOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
0
]
ROCM_MAJOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
0
]
ROCM_MINOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
1
]
ROCM_MINOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
1
]
...
...
op_builder/builder.py
View file @
d8669b08
...
@@ -190,7 +190,7 @@ class OpBuilder(ABC):
...
@@ -190,7 +190,7 @@ class OpBuilder(ABC):
if
OpBuilder
.
is_rocm_pytorch
():
if
OpBuilder
.
is_rocm_pytorch
():
from
torch.utils.cpp_extension
import
ROCM_HOME
from
torch.utils.cpp_extension
import
ROCM_HOME
#with open('/opt/rocm/.info/version-dev', 'r') as file:
#with open('/opt/rocm/.info/version-dev', 'r') as file:
with
open
(
'/
public/home/aiss/2022/dtk-21.10.1
/.info/version-dev'
,
'r'
)
as
file
:
with
open
(
'/
opt/dtk-22.04
/.info/version-dev'
,
'r'
)
as
file
:
ROCM_VERSION_DEV_RAW
=
file
.
read
()
ROCM_VERSION_DEV_RAW
=
file
.
read
()
ROCM_MAJOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
0
]
ROCM_MAJOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
0
]
ROCM_MINOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
1
]
ROCM_MINOR
=
ROCM_VERSION_DEV_RAW
.
split
(
'.'
)[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment