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
6fbd9970
Commit
6fbd9970
authored
Nov 20, 2023
by
Umang Yadav
Browse files
Remove old cast
parent
86605723
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
+5
-5
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
View file @
6fbd9970
...
...
@@ -209,35 +209,35 @@ struct float8
// Constructor from half
explicit
constexpr
__device__
float8
(
const
_Float16
v
,
rounding_mode
rm
=
rounding_mode
::
standard
,
uint32_t
rng
=
0
)
:
float8
(
(
float
)
v
,
rm
,
rng
)
:
float8
(
static_cast
<
float
>
(
v
),
rm
,
rng
)
{
}
// constructor from int
explicit
constexpr
__device__
float8
(
const
int
v
,
rounding_mode
rm
=
rounding_mode
::
standard
,
uint32_t
rng
=
0
)
:
float8
(
(
float
)
v
,
rm
,
rng
)
:
float8
(
static_cast
<
float
>
(
v
),
rm
,
rng
)
{
}
// constructor from uint
explicit
constexpr
__device__
float8
(
const
uint32_t
v
,
rounding_mode
rm
=
rounding_mode
::
standard
,
uint32_t
rng
=
0
)
:
float8
(
(
float
)
v
,
rm
,
rng
)
:
float8
(
static_cast
<
float
>
(
v
),
rm
,
rng
)
{
}
// constructor from double
explicit
constexpr
__device__
float8
(
const
double
v
,
rounding_mode
rm
=
rounding_mode
::
standard
,
uint32_t
rng
=
0
)
:
float8
(
(
float
)
v
,
rm
,
rng
)
:
float8
(
static_cast
<
float
>
(
v
),
rm
,
rng
)
{
}
// constructor from bool
explicit
constexpr
__device__
float8
(
const
bool
v
,
rounding_mode
rm
=
rounding_mode
::
standard
,
uint32_t
rng
=
0
)
:
float8
(
(
float
)
(
v
),
rm
,
rng
)
:
float8
(
static_cast
<
float
>
(
v
),
rm
,
rng
)
{
}
// convert to float
...
...
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