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
gaoqiong
composable_kernel_ROCM
Commits
bec4968e
Commit
bec4968e
authored
Feb 13, 2025
by
Rostyslav Geyyer
Browse files
Permute elements in a vector
parent
99e771a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
include/ck/utility/type_convert.hpp
include/ck/utility/type_convert.hpp
+2
-1
No files found.
include/ck/utility/type_convert.hpp
View file @
bec4968e
...
@@ -962,7 +962,8 @@ inline __host__ __device__ f4x2_t f4_convert_sr(float2_t x, float scale = 1.0f)
...
@@ -962,7 +962,8 @@ inline __host__ __device__ f4x2_t f4_convert_sr(float2_t x, float scale = 1.0f)
f4x2_t
f4x2_array
[
4
];
f4x2_t
f4x2_array
[
4
];
}
value
{
0
};
}
value
{
0
};
printf
(
"%f, %f
\n
"
,
x
[
0
],
x
[
1
]);
printf
(
"%f, %f
\n
"
,
x
[
0
],
x
[
1
]);
value
.
bitwise
=
__builtin_amdgcn_cvt_scalef32_sr_pk_fp4_f32
(
value
.
bitwise
,
x
,
rng
,
scale
,
0
);
value
.
bitwise
=
__builtin_amdgcn_cvt_scalef32_sr_pk_fp4_f32
(
value
.
bitwise
,
float2_t
{
x
[
1
],
x
[
0
]},
rng
,
scale
,
0
);
return
value
.
f4x2_array
[
0
];
return
value
.
f4x2_array
[
0
];
#else
#else
union
union
...
...
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