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
7c36034d
Commit
7c36034d
authored
Nov 09, 2023
by
Umang Yadav
Browse files
Rename float8 to fp8e4m3fnuz
parent
0672c72a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
15 deletions
+13
-15
src/api/include/migraphx/migraphx.h
src/api/include/migraphx/migraphx.h
+1
-1
src/include/migraphx/shape.hpp
src/include/migraphx/shape.hpp
+1
-1
src/targets/gpu/compile_gen.cpp
src/targets/gpu/compile_gen.cpp
+2
-2
src/targets/gpu/target.cpp
src/targets/gpu/target.cpp
+1
-1
test/gpu/jit.cpp
test/gpu/jit.cpp
+1
-1
test/py/test_shape.py
test/py/test_shape.py
+1
-1
test/verify/test_abs.cpp
test/verify/test_abs.cpp
+1
-2
test/verify/test_acos.cpp
test/verify/test_acos.cpp
+2
-3
test/verify/test_add.cpp
test/verify/test_add.cpp
+1
-1
test/verify/test_literal_limits.cpp
test/verify/test_literal_limits.cpp
+1
-1
tools/api/migraphx.h
tools/api/migraphx.h
+1
-1
No files found.
src/api/include/migraphx/migraphx.h
View file @
7c36034d
...
...
@@ -45,7 +45,7 @@
m(int64_type, int64_t) \
m(uint32_type, uint32_t) \
m(uint64_type, uint64_t) \
m(f
loat8
_type, fp8e4m3fnuz)
m(f
p8e4m3fnuz
_type, fp8e4m3fnuz)
// clang-format on
#ifdef __cplusplus
...
...
src/include/migraphx/shape.hpp
View file @
7c36034d
...
...
@@ -62,7 +62,7 @@ struct MIGRAPHX_EXPORT shape
m(int64_type, int64_t) \
m(uint32_type, uint32_t) \
m(uint64_type, uint64_t) \
m(f
loat8
_type, migraphx_fp8::fp8e4m3fnuz)
m(f
p8e4m3fnuz
_type, migraphx_fp8::fp8e4m3fnuz)
// clang-format on
#define MIGRAPHX_SHAPE_GENERATE_ENUM_TYPES(x, t) x,
...
...
src/targets/gpu/compile_gen.cpp
View file @
7c36034d
...
...
@@ -56,7 +56,7 @@ vectorize vectorize::elements(std::size_t axis,
{
// disable vectorization for fp8 types
if
(
std
::
any_of
(
inputs
.
begin
(),
inputs
.
end
(),
[
&
](
auto
ishape
)
{
return
ishape
.
type
()
==
migraphx
::
shape
::
f
loat8
_type
;
return
ishape
.
type
()
==
migraphx
::
shape
::
f
p8e4m3fnuz
_type
;
}))
return
{
1
,
axis
};
if
(
std
::
all_of
(
...
...
@@ -93,7 +93,7 @@ vectorize vectorize::elements(context& ctx, std::size_t axis, const std::vector<
{
// disable vectorization for fp8 types
if
(
std
::
any_of
(
inputs
.
begin
(),
inputs
.
end
(),
[
&
](
auto
ishape
)
{
return
ishape
.
type
()
==
migraphx
::
shape
::
f
loat8
_type
;
return
ishape
.
type
()
==
migraphx
::
shape
::
f
p8e4m3fnuz
_type
;
}))
return
{
1
,
axis
};
if
(
inputs
.
empty
())
...
...
src/targets/gpu/target.cpp
View file @
7c36034d
...
...
@@ -98,7 +98,7 @@ std::vector<pass> target::get_passes(migraphx::context& gctx, const compile_opti
ctx
.
set_exhaustive_tune_flag
(
options
.
exhaustive_tune
);
std
::
set
<
shape
::
type_t
>
unsupported_types
(
shape
::
types
().
begin
(),
shape
::
types
().
end
());
unsupported_types
.
erase
(
shape
::
type_t
::
float_type
);
unsupported_types
.
erase
(
shape
::
type_t
::
f
loat8
_type
);
unsupported_types
.
erase
(
shape
::
type_t
::
f
p8e4m3fnuz
_type
);
unsupported_types
.
erase
(
shape
::
type_t
::
half_type
);
unsupported_types
.
erase
(
shape
::
type_t
::
bool_type
);
unsupported_types
.
erase
(
shape
::
type_t
::
int8_type
);
...
...
test/gpu/jit.cpp
View file @
7c36034d
...
...
@@ -354,7 +354,7 @@ TEST_CASE(compile_math)
if
(
t
==
migraphx
::
shape
::
half_type
)
name
.
insert
(
0
,
"migraphx::"
);
data_types
.
push_back
(
name
);
if
(
t
!=
migraphx
::
shape
::
f
loat8
_type
)
if
(
t
!=
migraphx
::
shape
::
f
p8e4m3fnuz
_type
)
{
migraphx
::
transform
(
vec_sizes
,
std
::
back_inserter
(
data_types
),
[
&
](
auto
i
)
{
return
"migraphx::vec<"
+
name
+
", "
+
std
::
to_string
(
i
)
+
">"
;
...
...
test/py/test_shape.py
View file @
7c36034d
...
...
@@ -81,7 +81,7 @@ def test_create_dyn_shape():
def
test_type_enum
():
mgx_types
=
[
'bool_type'
,
'double_type'
,
'float_type'
,
'half_type'
,
'f
loat8
_type'
,
'int16_type'
,
'bool_type'
,
'double_type'
,
'float_type'
,
'half_type'
,
'f
p8e4m3fnuz
_type'
,
'int16_type'
,
'int32_type'
,
'int64_type'
,
'int8_type'
,
'uint16_type'
,
'uint32_type'
,
'uint64_type'
,
'uint8_type'
]
...
...
test/verify/test_abs.cpp
View file @
7c36034d
...
...
@@ -40,7 +40,6 @@ struct test_abs : verify_program<test_abs<DType>>
}
};
template
struct
test_abs
<
migraphx
::
shape
::
f
loat8
_type
>;
template
struct
test_abs
<
migraphx
::
shape
::
f
p8e4m3fnuz
_type
>;
template
struct
test_abs
<
migraphx
::
shape
::
half_type
>;
template
struct
test_abs
<
migraphx
::
shape
::
float_type
>;
test/verify/test_acos.cpp
View file @
7c36034d
...
...
@@ -27,7 +27,7 @@
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
template
<
migraphx
::
shape
::
type_t
DType
>
template
<
migraphx
::
shape
::
type_t
DType
>
struct
test_acos
:
verify_program
<
test_acos
<
DType
>>
{
migraphx
::
program
create_program
()
const
...
...
@@ -41,7 +41,6 @@ struct test_acos : verify_program<test_acos<DType>>
}
};
template
struct
test_acos
<
migraphx
::
shape
::
f
loat8
_type
>;
template
struct
test_acos
<
migraphx
::
shape
::
f
p8e4m3fnuz
_type
>;
template
struct
test_acos
<
migraphx
::
shape
::
half_type
>;
template
struct
test_acos
<
migraphx
::
shape
::
float_type
>;
test/verify/test_add.cpp
View file @
7c36034d
...
...
@@ -42,6 +42,6 @@ struct test_add : verify_program<test_add<DType>>
}
};
template
struct
test_add
<
migraphx
::
shape
::
f
loat8
_type
>;
template
struct
test_add
<
migraphx
::
shape
::
f
p8e4m3fnuz
_type
>;
template
struct
test_add
<
migraphx
::
shape
::
half_type
>;
template
struct
test_add
<
migraphx
::
shape
::
float_type
>;
test/verify/test_literal_limits.cpp
View file @
7c36034d
...
...
@@ -53,4 +53,4 @@ template struct test_literal_limits<migraphx::shape::double_type, double>;
template
struct
test_literal_limits
<
migraphx
::
shape
::
half_type
,
migraphx
::
half
>;
template
struct
test_literal_limits
<
migraphx
::
shape
::
int32_type
,
int32_t
>;
template
struct
test_literal_limits
<
migraphx
::
shape
::
int8_type
,
int8_t
>;
template
struct
test_literal_limits
<
migraphx
::
shape
::
f
loat8
_type
,
migraphx_fp8
::
fp8e4m3fnuz
>;
template
struct
test_literal_limits
<
migraphx
::
shape
::
f
p8e4m3fnuz
_type
,
migraphx_fp8
::
fp8e4m3fnuz
>;
tools/api/migraphx.h
View file @
7c36034d
...
...
@@ -45,7 +45,7 @@
m(int64_type, int64_t) \
m(uint32_type, uint32_t) \
m(uint64_type, uint64_t) \
m(f
loat8
_type, migraphx_fp8::fp8e4m3fnuz)
m(f
p8e4m3fnuz
_type, migraphx_fp8::fp8e4m3fnuz)
// clang-format on
#ifdef __cplusplus
...
...
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