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
6116295f
Commit
6116295f
authored
Jan 08, 2025
by
Po Yen, Chen
Browse files
Fix build errors (except PyTorch depedency)
parent
08e057ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
example/ck_tile/18_paged_attention/CMakeLists.txt
example/ck_tile/18_paged_attention/CMakeLists.txt
+11
-1
example/ck_tile/18_paged_attention/attention.cpp
example/ck_tile/18_paged_attention/attention.cpp
+3
-5
No files found.
example/ck_tile/18_paged_attention/CMakeLists.txt
View file @
6116295f
...
...
@@ -5,4 +5,14 @@ string(REGEX REPLACE "^[0-9]+_" "" TRIMMED_DIR_NAME "${DIR_NAME}")
# add prefix "tile_example_" to the processed directory name
set
(
EXAMPLE_NAME
"tile_example_
${
TRIMMED_DIR_NAME
}
"
)
add_executable
(
${
EXAMPLE_NAME
}
EXCLUDE_FROM_ALL paged_attention.cpp
)
\ No newline at end of file
add_executable
(
${
EXAMPLE_NAME
}
EXCLUDE_FROM_ALL paged_attention.cpp attention.cpp
)
target_include_directories
(
${
EXAMPLE_NAME
}
AFTER PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
target_compile_definitions
(
${
EXAMPLE_NAME
}
PRIVATE USE_ROCM
)
target_compile_options
(
${
EXAMPLE_NAME
}
PRIVATE
-Wno-undefined-reinterpret-cast
-Wno-unused-variable
-Wno-unused-parameter
-Wno-old-style-cast
-Wno-deprecated-copy
-Wno-shadow
)
\ No newline at end of file
example/ck_tile/18_paged_attention/attention.c
u
→
example/ck_tile/18_paged_attention/attention.c
pp
View file @
6116295f
...
...
@@ -14,15 +14,13 @@
* limitations under the License.
*/
#include <torch/all.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/cuda/CUDAGuard.h>
#include <hip/hip_bf16.h>
#include "cuda_compat.h"
#include <algorithm>
#include "../attention/dtype_fp8.cuh"
#include "../quantization/fp8/amd/quant_utils.cuh"
#include <cfloat>
#include "attention/dtype_fp8.cuh"
#include "quantization/fp8/amd/quant_utils.cuh"
#if defined(__HIPCC__) && (defined(__gfx90a__) || defined(__gfx940__) || \
defined(__gfx941__) || defined(__gfx942__))
...
...
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