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_ROCM
Commits
385ac815
Commit
385ac815
authored
Feb 10, 2025
by
aska-0096
Browse files
make standalone example
parent
d9f1ead3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1247 additions
and
0 deletions
+1247
-0
example/ck_tile/01_fmha/CMakeLists.txt
example/ck_tile/01_fmha/CMakeLists.txt
+9
-0
example/ck_tile/01_fmha/example_bwd_fmha_bf16.cpp
example/ck_tile/01_fmha/example_bwd_fmha_bf16.cpp
+1238
-0
No files found.
example/ck_tile/01_fmha/CMakeLists.txt
View file @
385ac815
...
@@ -114,6 +114,15 @@ list(APPEND EXAMPLE_FMHA_BWD_COMPILE_OPTIONS -Wno-float-equal)
...
@@ -114,6 +114,15 @@ list(APPEND EXAMPLE_FMHA_BWD_COMPILE_OPTIONS -Wno-float-equal)
target_compile_options
(
${
EXAMPLE_FMHA_FWD
}
PRIVATE
${
EXAMPLE_FMHA_FWD_COMPILE_OPTIONS
}
)
target_compile_options
(
${
EXAMPLE_FMHA_FWD
}
PRIVATE
${
EXAMPLE_FMHA_FWD_COMPILE_OPTIONS
}
)
target_compile_options
(
${
EXAMPLE_FMHA_BWD
}
PRIVATE
${
EXAMPLE_FMHA_BWD_COMPILE_OPTIONS
}
)
target_compile_options
(
${
EXAMPLE_FMHA_BWD
}
PRIVATE
${
EXAMPLE_FMHA_BWD_COMPILE_OPTIONS
}
)
set
(
STANDALONE_EXAMPLE_FA_BWD_COMPILE_OPTIONS
)
list
(
APPEND STANDALONE_EXAMPLE_FA_BWD_COMPILE_OPTIONS -Wno-undefined-func-template -fgpu-flush-denormals-to-zero
)
list
(
APPEND STANDALONE_EXAMPLE_FA_BWD_COMPILE_OPTIONS -Wno-float-equal
)
list
(
APPEND STANDALONE_EXAMPLE_FA_BWD_COMPILE_OPTIONS -v --save-temps -Wno-gnu-line-marker
)
set
(
STANDALONE_EXAMPLE_FA_BWD
"standalone_example_fa_bwd"
)
add_executable
(
${
STANDALONE_EXAMPLE_FA_BWD
}
EXCLUDE_FROM_ALL example_bwd_fmha_bf16.cpp
)
target_compile_options
(
${
STANDALONE_EXAMPLE_FA_BWD
}
PRIVATE
${
STANDALONE_EXAMPLE_FA_BWD_COMPILE_OPTIONS
}
)
# TODO: we have to turn off this global prop, otherwise the progress bar generated
# TODO: we have to turn off this global prop, otherwise the progress bar generated
# by cmake will print too many files, execvp: /bin/sh: Argument list too long
# by cmake will print too many files, execvp: /bin/sh: Argument list too long
# however, this property may affect global
# however, this property may affect global
...
...
example/ck_tile/01_fmha/example_bwd_fmha_bf16.cpp
0 → 100644
View file @
385ac815
This diff is collapsed.
Click to expand it.
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