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
1dd03dda
Commit
1dd03dda
authored
Aug 22, 2022
by
Rosty Geyyer
Browse files
Fix AddReluAdd for building without int4 support
parent
451aef90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/ck/tensor_operation/gpu/element/element_wise_operation.hpp
...k/tensor_operation/gpu/element/element_wise_operation.hpp
+2
-0
No files found.
include/ck/tensor_operation/gpu/element/element_wise_operation.hpp
View file @
1dd03dda
...
@@ -99,6 +99,7 @@ struct AddReluAdd
...
@@ -99,6 +99,7 @@ struct AddReluAdd
y
=
c
;
y
=
c
;
}
}
#ifdef CK_EXPERIMENTAL_BIT_INT_EXTENSION_INT4
template
<
>
template
<
>
__host__
__device__
constexpr
void
operator
()
<
int4_t
,
int8_t
,
int4_t
,
int4_t
>
(
__host__
__device__
constexpr
void
operator
()
<
int4_t
,
int8_t
,
int4_t
,
int4_t
>
(
int4_t
&
y
,
const
int8_t
&
x0
,
const
int4_t
&
x1
,
const
int4_t
&
x2
)
const
int4_t
&
y
,
const
int8_t
&
x0
,
const
int4_t
&
x1
,
const
int4_t
&
x2
)
const
...
@@ -108,6 +109,7 @@ struct AddReluAdd
...
@@ -108,6 +109,7 @@ struct AddReluAdd
int32_t
c
=
b
+
x2
;
int32_t
c
=
b
+
x2
;
y
=
c
;
y
=
c
;
}
}
#endif // CK_EXPERIMENTAL_BIT_INT_EXTENSION_INT4
};
};
struct
AddHardswishAdd
struct
AddHardswishAdd
...
...
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