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
f036d425
"vscode:/vscode.git/clone" did not exist on "dfcce3ca6ed4cd68246bdf7ee98f1e67b4d252c4"
Commit
f036d425
authored
Jun 07, 2023
by
Rostyslav Geyyer
Browse files
Add exceptions if argument is not supported
parent
7fd0378a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
client_example/02_gemm_add_add_fastgelu/gemm_add_add_fastgelu_generic.cpp
...2_gemm_add_add_fastgelu/gemm_add_add_fastgelu_generic.cpp
+6
-0
client_example/02_gemm_add_add_fastgelu/gemm_add_fastgelu_generic.cpp
...le/02_gemm_add_add_fastgelu/gemm_add_fastgelu_generic.cpp
+6
-0
client_example/02_gemm_add_add_fastgelu/gemm_fastgelu_generic.cpp
...xample/02_gemm_add_add_fastgelu/gemm_fastgelu_generic.cpp
+6
-0
No files found.
client_example/02_gemm_add_add_fastgelu/gemm_add_add_fastgelu_generic.cpp
View file @
f036d425
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#include <iomanip>
#include <iomanip>
#include <vector>
#include <vector>
#include <iostream>
#include <iostream>
#include <stdexcept>
#include "ck/ck.hpp"
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
...
@@ -163,6 +164,11 @@ int main(int argc, char* argv[])
...
@@ -163,6 +164,11 @@ int main(int argc, char* argv[])
{
{
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
}
}
else
{
throw
std
::
runtime_error
(
"Generic instance should be suitable for various input lengths/strides"
);
}
std
::
cout
<<
"Done"
<<
std
::
endl
;
std
::
cout
<<
"Done"
<<
std
::
endl
;
...
...
client_example/02_gemm_add_add_fastgelu/gemm_add_fastgelu_generic.cpp
View file @
f036d425
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#include <iomanip>
#include <iomanip>
#include <vector>
#include <vector>
#include <iostream>
#include <iostream>
#include <stdexcept>
#include "ck/ck.hpp"
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
...
@@ -156,6 +157,11 @@ int main(int argc, char* argv[])
...
@@ -156,6 +157,11 @@ int main(int argc, char* argv[])
{
{
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
}
}
else
{
throw
std
::
runtime_error
(
"Generic instance should be suitable for various input lengths/strides"
);
}
std
::
cout
<<
"Done"
<<
std
::
endl
;
std
::
cout
<<
"Done"
<<
std
::
endl
;
...
...
client_example/02_gemm_add_add_fastgelu/gemm_fastgelu_generic.cpp
View file @
f036d425
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#include <iomanip>
#include <iomanip>
#include <vector>
#include <vector>
#include <iostream>
#include <iostream>
#include <stdexcept>
#include "ck/ck.hpp"
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
...
@@ -149,6 +150,11 @@ int main(int argc, char* argv[])
...
@@ -149,6 +150,11 @@ int main(int argc, char* argv[])
{
{
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
invoker_ptr
->
Run
(
argument_ptr
.
get
(),
StreamConfig
{
nullptr
,
false
});
}
}
else
{
throw
std
::
runtime_error
(
"Generic instance should be suitable for various input lengths/strides"
);
}
std
::
cout
<<
"Done"
<<
std
::
endl
;
std
::
cout
<<
"Done"
<<
std
::
endl
;
...
...
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