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
e80f260d
Commit
e80f260d
authored
Apr 25, 2025
by
yuguo
Browse files
[DCU] fix rocblas backend
parent
3e001bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
transformer_engine/common/gemm/rocm_gemm.cu
transformer_engine/common/gemm/rocm_gemm.cu
+4
-2
No files found.
transformer_engine/common/gemm/rocm_gemm.cu
View file @
e80f260d
...
...
@@ -1815,12 +1815,14 @@ void cublas_gemm(const Tensor *inputA, const Tensor *inputB, Tensor *outputD,
if
(
use_hipblaslt
)
{
use_hipblaslt
=
false
;
use_rocblas
=
true
;
std
::
cout
<<
"[NOTICE] hipBLASLt is not enabled, NVTE_USE_HIPBLASLT env is ignored
\n
"
;
}
#elif !defined(USE_ROCBLAS)
if
(
use_rocblas
)
{
use_rocblas
=
false
;
use_hipblaslt
=
true
;
std
::
cout
<<
"[NOTICE] rocBLAS is not enabled, NVTE_USE_ROCBLAS env is ignored
\n
"
;
}
#else
...
...
@@ -1828,12 +1830,12 @@ void cublas_gemm(const Tensor *inputA, const Tensor *inputB, Tensor *outputD,
{
use_rocblas
=
false
;
use_hipblaslt
=
true
;
std
::
cout
<<
"[NOTICE] Two GEMM backend are enabled, hipBLASLt will be used
\n
"
;
//
std::cout << "[NOTICE] Two GEMM backend are enabled, hipBLASLt will be used\n";
}
else
if
(
!
use_hipblaslt
&&
!
use_rocblas
)
{
use_rocblas
=
false
;
use_hipblaslt
=
true
;
std
::
cout
<<
"[NOTICE] Two GEMM backend are disabled, hipBLASLt will be used
\n
"
;
//
std::cout << "[NOTICE] Two GEMM backend are disabled, hipBLASLt will be used\n";
}
#endif
...
...
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