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
MIGraphX
Commits
a866b43f
Commit
a866b43f
authored
Nov 06, 2023
by
Umang Yadav
Browse files
works without vectorization
parent
f8761f3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp
...gets/gpu/kernels/include/migraphx/kernels/type_traits.hpp
+5
-0
src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp
...argets/gpu/kernels/include/migraphx/kernels/vectorize.hpp
+4
-0
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp
View file @
a866b43f
...
...
@@ -142,6 +142,11 @@ MIGRAPHX_BUILTIN_TYPE_TRAITN(is_constructible);
MIGRAPHX_BUILTIN_TYPE_TRAITN
(
is_nothrow_constructible
);
MIGRAPHX_BUILTIN_TYPE_TRAITN
(
is_trivially_constructible
);
template
<
>
struct
is_fundamental
<
migraphx
::
fp8e4m3fnuz
>
:
false_type
{
};
template
<
class
T
>
struct
remove_cv
{
...
...
src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp
View file @
a866b43f
...
...
@@ -254,6 +254,10 @@ __device__ __host__ auto vectorize()
{
f
(
xs
...);
}
else
if
constexpr
(
is_same
<
decltype
(
any_of
(
xs
...)),
migraphx
::
fp8e4m3fnuz
>
{})
{
return
f
(
xs
...);
}
else
{
f
(
vectorize_tensor
<
N
,
Axis
>
(
xs
)...);
...
...
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