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
d55fdf7b
Commit
d55fdf7b
authored
Sep 18, 2025
by
yuguo
Browse files
[DCU] fix compile
parent
e45d66a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
transformer_engine/common/common.cu
transformer_engine/common/common.cu
+2
-0
No files found.
transformer_engine/common/common.cu
View file @
d55fdf7b
...
...
@@ -26,6 +26,7 @@ __global__ void __launch_bounds__(1)
}
// namespace
#ifndef __HIP_PLATFORM_AMD__
cudaDataType_t
get_cuda_dtype
(
const
transformer_engine
::
DType
t
)
{
using
namespace
transformer_engine
;
switch
(
t
)
{
...
...
@@ -43,6 +44,7 @@ cudaDataType_t get_cuda_dtype(const transformer_engine::DType t) {
NVTE_ERROR
(
"Invalid type"
);
}
}
#endif
void
update_tensor_scale_inv
(
Tensor
*
t
,
cudaStream_t
stream
)
{
if
(
is_fp8_dtype
(
t
->
data
.
dtype
)
&&
is_tensor_scaling
(
t
->
scaling_mode
))
{
...
...
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