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
TransformerEngine
Commits
68487b2a
Commit
68487b2a
authored
Jun 20, 2025
by
yuguo
Browse files
[DCU] fix 2.5 compile issues
parent
25e709aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
transformer_engine/common/util/multi_stream.cpp
transformer_engine/common/util/multi_stream.cpp
+15
-0
No files found.
transformer_engine/common/util/multi_stream.cpp
View file @
68487b2a
...
@@ -18,6 +18,21 @@
...
@@ -18,6 +18,21 @@
#include "cuda_runtime.h"
#include "cuda_runtime.h"
#include "logging.h"
#include "logging.h"
static
inline
int
getIntEnv
(
const
char
*
name
,
int
defval
,
int
minval
)
{
int
val
=
defval
;
const
char
*
env
=
std
::
getenv
(
name
);
if
(
env
!=
nullptr
&&
env
[
0
]
!=
'\0'
)
{
val
=
atoi
(
env
);
if
(
val
<
minval
)
{
val
=
minval
;
}
}
return
val
;
}
namespace
transformer_engine
::
detail
{
namespace
transformer_engine
::
detail
{
cudaStream_t
get_compute_stream
(
int
idx
)
{
cudaStream_t
get_compute_stream
(
int
idx
)
{
...
...
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