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
179092df
Commit
179092df
authored
Sep 06, 2022
by
Po-Yen, Chen
Browse files
Remove 'is_device_op<>' type traits
parent
32a2d78b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
example/36_permute/common.hpp
example/36_permute/common.hpp
+0
-29
example/36_permute/run_permute_example.inc
example/36_permute/run_permute_example.inc
+0
-1
No files found.
example/36_permute/common.hpp
View file @
179092df
...
...
@@ -176,35 +176,6 @@ struct is_random_access_range<Range, std::void_t<>>
template
<
typename
Range
>
inline
constexpr
bool
is_random_access_range_v
=
is_random_access_range
<
Range
>::
value
;
template
<
typename
T
,
typename
=
void
>
struct
is_device_op
:
std
::
false_type
{
};
template
<
typename
T
>
struct
is_device_op
<
T
,
std
::
void_t
<
typename
T
::
Argument
,
typename
T
::
Invoker
,
decltype
(
T
::
IsSupportedArgument
(
std
::
declval
<
const
typename
T
::
Argument
&>
())),
decltype
(
T
::
MakeInvoker
()),
decltype
(
std
::
declval
<
T
&>
().
MakeInvokerPointer
())
>>
:
std
::
bool_constant
<
std
::
is_base_of_v
<
ck
::
tensor_operation
::
device
::
BaseOperator
,
T
>
&&
std
::
is_base_of_v
<
ck
::
tensor_operation
::
device
::
BaseArgument
,
typename
T
::
Argument
>
&&
std
::
is_base_of_v
<
ck
::
tensor_operation
::
device
::
BaseInvoker
,
typename
T
::
Invoker
>
&&
std
::
is_same_v
<
bool
,
decltype
(
T
::
IsSupportedArgument
(
std
::
declval
<
const
typename
T
::
Argument
&>
()))
>
&&
std
::
is_same_v
<
typename
T
::
Invoker
,
decltype
(
T
::
MakeInvoker
())
>
&&
std
::
is_same_v
<
std
::
unique_ptr
<
ck
::
tensor_operation
::
device
::
BaseInvoker
>
,
decltype
(
std
::
declval
<
T
&>
().
MakeInvokerPointer
())
>>
{
};
template
<
typename
T
>
inline
constexpr
bool
is_device_op_v
=
is_device_op
<
T
>::
value
;
}
// namespace detail
template
<
typename
Range
>
...
...
example/36_permute/run_permute_example.inc
View file @
179092df
...
...
@@ -32,7 +32,6 @@ bool run_permute(const ExecutionConfig& config, const Problem& problem)
std
::
copy
(
begin
(
b
.
mDesc
.
GetStrides
()),
end
(
b
.
mDesc
.
GetStrides
()),
begin
(
front
(
b_strides
)));
static_assert
(
std
::
is_default_constructible_v
<
DevicePermuteInstance
>
);
// static_assert(detail::is_device_op_v<DevicePermuteInstance>);
auto
permute
=
DevicePermuteInstance
{};
auto
argument
=
...
...
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