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
Commits
08e263e3
Commit
08e263e3
authored
Jun 15, 2023
by
Rostyslav Geyyer
Browse files
Refactor type_convert.hpp
parent
562ec121
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp
...or_operation/gpu/element/unary_element_wise_operation.hpp
+1
-0
include/ck/utility/common_header.hpp
include/ck/utility/common_header.hpp
+1
-0
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+1
-1
include/ck/utility/inner_product.hpp
include/ck/utility/inner_product.hpp
+1
-0
include/ck/utility/reduction_operator.hpp
include/ck/utility/reduction_operator.hpp
+1
-0
include/ck/utility/type_convert.hpp
include/ck/utility/type_convert.hpp
+1
-7
library/include/ck/library/utility/host_tensor.hpp
library/include/ck/library/utility/host_tensor.hpp
+1
-0
test/data_type/fp8.cpp
test/data_type/fp8.cpp
+1
-0
No files found.
include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp
View file @
08e263e3
...
...
@@ -6,6 +6,7 @@
#include "ck/utility/data_type.hpp"
#include "ck/utility/math.hpp"
#include "ck/utility/math_v2.hpp"
#include "ck/utility/type_convert.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
include/ck/utility/common_header.hpp
View file @
08e263e3
...
...
@@ -24,6 +24,7 @@
#include "ck/utility/tuple.hpp"
#include "ck/utility/tuple_helper.hpp"
#include "ck/utility/type.hpp"
#include "ck/utility/type_convert.hpp"
#include "ck/utility/magic_division.hpp"
#include "ck/utility/c_style_pointer_cast.hpp"
#include "ck/utility/is_known_at_compile_time.hpp"
...
...
include/ck/utility/data_type.hpp
View file @
08e263e3
...
...
@@ -3,8 +3,8 @@
#pragma once
#include "ck/utility/f8_utils.hpp"
#include "ck/utility/statically_indexed_array.hpp"
#include "ck/utility/type_convert.hpp"
namespace
ck
{
...
...
include/ck/utility/inner_product.hpp
View file @
08e263e3
...
...
@@ -3,6 +3,7 @@
#pragma once
#include "data_type.hpp"
#include "type_convert.hpp"
namespace
ck
{
...
...
include/ck/utility/reduction_operator.hpp
View file @
08e263e3
...
...
@@ -6,6 +6,7 @@
#include "ck/ck.hpp"
#include "ck/utility/data_type.hpp"
#include "ck/utility/type.hpp"
#include "ck/utility/type_convert.hpp"
namespace
ck
{
...
...
include/ck/utility/type_convert.hpp
View file @
08e263e3
...
...
@@ -3,17 +3,11 @@
#pragma once
#include "ck/utility/
f8_utils
.hpp"
#include "ck/utility/
data_type
.hpp"
#include "ck/utility/random_gen.hpp"
namespace
ck
{
using
bhalf_t
=
ushort
;
using
half_t
=
_Float16
;
#ifdef CK_EXPERIMENTAL_BIT_INT_EXTENSION_INT4
using
int4_t
=
_BitInt
(
4
);
#endif
// Convert X to Y
template
<
typename
Y
,
typename
X
>
__host__
__device__
constexpr
Y
type_convert
(
X
x
)
...
...
library/include/ck/library/utility/host_tensor.hpp
View file @
08e263e3
...
...
@@ -13,6 +13,7 @@
#include "ck/utility/data_type.hpp"
#include "ck/utility/span.hpp"
#include "ck/utility/type_convert.hpp"
#include "ck/library/utility/algorithm.hpp"
#include "ck/library/utility/ranges.hpp"
...
...
test/data_type/fp8.cpp
View file @
08e263e3
...
...
@@ -3,6 +3,7 @@
#include "gtest/gtest.h"
#include "ck/utility/data_type.hpp"
#include "ck/utility/type_convert.hpp"
using
ck
::
f8_convert_sr
;
using
ck
::
f8_t
;
...
...
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