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
e8f92b93
"git@developer.sourcefind.cn:OpenDAS/TransformerEngine.git" did not exist on "94ba75d7f470a412a5d4f3cea3728792f49b38f7"
Commit
e8f92b93
authored
May 07, 2025
by
yuguo
Browse files
[DCU] fix batchgemm
parent
c37084b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
transformer_engine/common/gemm/cublaslt_gemm.cu
transformer_engine/common/gemm/cublaslt_gemm.cu
+0
-14
transformer_engine/pytorch/module/__init__.py
transformer_engine/pytorch/module/__init__.py
+2
-1
No files found.
transformer_engine/common/gemm/cublaslt_gemm.cu
View file @
e8f92b93
...
@@ -731,20 +731,6 @@ void nvte_cublas_handle_init() { auto _ = cublasHandleManager::Instance().GetHan
...
@@ -731,20 +731,6 @@ void nvte_cublas_handle_init() { auto _ = cublasHandleManager::Instance().GetHan
#endif
#endif
#ifdef __HIP_PLATFORM_AMD__
#ifdef __HIP_PLATFORM_AMD__
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
;
}
void
nvte_multi_stream_cublas_batchgemm
(
const
NVTETensor
*
A
,
const
NVTETensor
*
B
,
NVTETensor
*
D
,
void
nvte_multi_stream_cublas_batchgemm
(
const
NVTETensor
*
A
,
const
NVTETensor
*
B
,
NVTETensor
*
D
,
const
NVTETensor
*
bias
,
NVTETensor
*
pre_gelu_out
,
const
NVTETensor
*
bias
,
NVTETensor
*
pre_gelu_out
,
...
...
transformer_engine/pytorch/module/__init__.py
View file @
e8f92b93
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
"""Module level PyTorch APIs"""
"""Module level PyTorch APIs"""
from
.layernorm_linear
import
LayerNormLinear
from
.layernorm_linear
import
LayerNormLinear
from
.linear
import
Linear
from
.linear
import
Linear
from
.grouped_linear
import
GroupedLinear
,
BatchedLinear
from
.grouped_linear
import
GroupedLinear
from
.batched_linear
import
BatchedLinear
from
.layernorm_mlp
import
LayerNormMLP
from
.layernorm_mlp
import
LayerNormMLP
from
.layernorm
import
LayerNorm
from
.layernorm
import
LayerNorm
from
.rmsnorm
import
RMSNorm
from
.rmsnorm
import
RMSNorm
...
...
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