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
38218edc
Commit
38218edc
authored
Dec 01, 2023
by
Umang Yadav
Browse files
few changes
parent
f155b0e6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
24 deletions
+19
-24
src/targets/gpu/jit/reduce.cpp
src/targets/gpu/jit/reduce.cpp
+14
-15
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
+2
-6
test/verify/gemm_2args_mm_2.cpp
test/verify/gemm_2args_mm_2.cpp
+1
-1
test/verify/gemm_2args_mm_3.cpp
test/verify/gemm_2args_mm_3.cpp
+1
-1
test/verify/gemm_2args_mm_4.cpp
test/verify/gemm_2args_mm_4.cpp
+1
-1
No files found.
src/targets/gpu/jit/reduce.cpp
View file @
38218edc
...
@@ -146,7 +146,6 @@ struct simple_reduce_compiler : compiler<simple_reduce_compiler>
...
@@ -146,7 +146,6 @@ struct simple_reduce_compiler : compiler<simple_reduce_compiler>
vectorize
vec
{};
vectorize
vec
{};
auto
nelements
=
options
.
virtual_inputs
.
back
().
elements
();
auto
nelements
=
options
.
virtual_inputs
.
back
().
elements
();
auto
algo
=
v
.
get
(
"algo"
,
get_reduce_algo
(
options
.
virtual_inputs
));
auto
algo
=
v
.
get
(
"algo"
,
get_reduce_algo
(
options
.
virtual_inputs
));
if
(
algo
==
"block"
)
if
(
algo
==
"block"
)
{
{
// Vectorize if the axis is a reduction axis
// Vectorize if the axis is a reduction axis
...
...
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
View file @
38218edc
...
@@ -501,9 +501,7 @@ class numeric_limits<fp8e5m2fnuz>
...
@@ -501,9 +501,7 @@ class numeric_limits<fp8e5m2fnuz>
{
{
return
fp8e5m2fnuz
(
0x7F
,
fp8e5m2fnuz
::
from_bits
());
return
fp8e5m2fnuz
(
0x7F
,
fp8e5m2fnuz
::
from_bits
());
}
}
// this is min value that is not DeNormalized(DeNorm). DeNorm min is 0x01. I am not sure if we
// this is min value that is not DeNormalized(DeNorm). DeNorm min is 0x01.
// want to make this distinction. For the floating points we would end up using lowest most of
// the times.
static
constexpr
__device__
fp8e5m2fnuz
min
()
static
constexpr
__device__
fp8e5m2fnuz
min
()
{
{
return
fp8e5m2fnuz
(
0x4
,
fp8e5m2fnuz
::
from_bits
());
return
fp8e5m2fnuz
(
0x4
,
fp8e5m2fnuz
::
from_bits
());
...
@@ -528,9 +526,7 @@ class numeric_limits<fp8e5m2>
...
@@ -528,9 +526,7 @@ class numeric_limits<fp8e5m2>
}
}
static
constexpr
__device__
fp8e5m2
max
()
{
return
fp8e5m2
(
0x7B
,
fp8e5m2
::
from_bits
());
}
static
constexpr
__device__
fp8e5m2
max
()
{
return
fp8e5m2
(
0x7B
,
fp8e5m2
::
from_bits
());
}
// this is min value that is not DeNormalized(DeNorm). DeNorm min is 0x01. I am not sure if we
// this is min value that is not DeNormalized(DeNorm). DeNorm min is 0x01.
// want to make this distinction. For the floating points we would end up using lowest most of
// the times.
static
constexpr
__device__
fp8e5m2
min
()
{
return
fp8e5m2
(
0x4
,
fp8e5m2
::
from_bits
());
}
static
constexpr
__device__
fp8e5m2
min
()
{
return
fp8e5m2
(
0x4
,
fp8e5m2
::
from_bits
());
}
static
constexpr
__device__
fp8e5m2
lowest
()
{
return
fp8e5m2
(
0xFB
,
fp8e5m2
::
from_bits
());
}
static
constexpr
__device__
fp8e5m2
lowest
()
{
return
fp8e5m2
(
0xFB
,
fp8e5m2
::
from_bits
());
}
...
...
test/verify/gemm_2args_mm_2.cpp
View file @
38218edc
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
#include "migraphx/shape.hpp"
#include "verify_program.hpp"
#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/program.hpp>
#include <migraphx/shape.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/make_op.hpp>
...
...
test/verify/gemm_2args_mm_3.cpp
View file @
38218edc
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
#include "migraphx/shape.hpp"
#include "verify_program.hpp"
#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/program.hpp>
#include <migraphx/shape.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/make_op.hpp>
...
...
test/verify/gemm_2args_mm_4.cpp
View file @
38218edc
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
#include "migraphx/shape.hpp"
#include "verify_program.hpp"
#include "verify_program.hpp"
#include <migraphx/shape.hpp>
#include <migraphx/program.hpp>
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/make_op.hpp>
...
...
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