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
6d597346
Commit
6d597346
authored
Oct 17, 2024
by
Mirza Halilcevic
Browse files
Revert ck_host library.
parent
1ce42d3d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
30 deletions
+2
-30
CMakeLists.txt
CMakeLists.txt
+0
-28
Config.cmake.in
Config.cmake.in
+1
-1
codegen/CMakeLists.txt
codegen/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
6d597346
...
@@ -125,8 +125,6 @@ rocm_setup_version(VERSION ${version})
...
@@ -125,8 +125,6 @@ rocm_setup_version(VERSION ${version})
list
(
APPEND CMAKE_PREFIX_PATH
${
CMAKE_INSTALL_PREFIX
}
${
CMAKE_INSTALL_PREFIX
}
/llvm
${
CMAKE_INSTALL_PREFIX
}
/hip /opt/rocm /opt/rocm/llvm /opt/rocm/hip
"$ENV{ROCM_PATH}"
"$ENV{HIP_PATH}"
)
list
(
APPEND CMAKE_PREFIX_PATH
${
CMAKE_INSTALL_PREFIX
}
${
CMAKE_INSTALL_PREFIX
}
/llvm
${
CMAKE_INSTALL_PREFIX
}
/hip /opt/rocm /opt/rocm/llvm /opt/rocm/hip
"$ENV{ROCM_PATH}"
"$ENV{HIP_PATH}"
)
option
(
CK_BUILD_HOST_LIB,
"Only build the CK JIT Helper Library"
OFF
)
message
(
"GPU_TARGETS=
${
GPU_TARGETS
}
"
)
message
(
"GPU_TARGETS=
${
GPU_TARGETS
}
"
)
message
(
"GPU_ARCHS=
${
GPU_ARCHS
}
"
)
message
(
"GPU_ARCHS=
${
GPU_ARCHS
}
"
)
if
(
GPU_ARCHS
)
if
(
GPU_ARCHS
)
...
@@ -139,7 +137,6 @@ if(GPU_TARGETS)
...
@@ -139,7 +137,6 @@ if(GPU_TARGETS)
else
()
else
()
set
(
USER_GPU_TARGETS 0
)
set
(
USER_GPU_TARGETS 0
)
endif
()
endif
()
find_package
(
hip
)
find_package
(
hip
)
# No assumption that HIP kernels are launched with uniform block size for backward compatibility
# No assumption that HIP kernels are launched with uniform block size for backward compatibility
# SWDEV-413293 and https://reviews.llvm.org/D155213
# SWDEV-413293 and https://reviews.llvm.org/D155213
...
@@ -249,7 +246,6 @@ elseif(CK_PARALLEL_COMPILE_JOBS)
...
@@ -249,7 +246,6 @@ elseif(CK_PARALLEL_COMPILE_JOBS)
message
(
WARNING
"Job pooling is only available with Ninja generators."
)
message
(
WARNING
"Job pooling is only available with Ninja generators."
)
endif
()
endif
()
if
(
NOT CK_BUILD_HOST_LIB
)
option
(
USE_BITINT_EXTENSION_INT4
"Whether to enable clang's BitInt extension to provide int4 data type."
OFF
)
option
(
USE_BITINT_EXTENSION_INT4
"Whether to enable clang's BitInt extension to provide int4 data type."
OFF
)
option
(
USE_OPT_GFX11
"Whether to enable LDS cumode and Wavefront32 mode for GFX11 silicons."
OFF
)
option
(
USE_OPT_GFX11
"Whether to enable LDS cumode and Wavefront32 mode for GFX11 silicons."
OFF
)
...
@@ -271,8 +267,6 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
...
@@ -271,8 +267,6 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
link_libraries
(
Threads::Threads
)
link_libraries
(
Threads::Threads
)
endif
()
# NOT CK_BUILD_HOST_LIB
## C++
## C++
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
...
@@ -289,8 +283,6 @@ if(USE_GLIBCXX_ASSERTIONS)
...
@@ -289,8 +283,6 @@ if(USE_GLIBCXX_ASSERTIONS)
add_compile_options
(
-Wp,-D_GLIBCXX_ASSERTIONS
)
add_compile_options
(
-Wp,-D_GLIBCXX_ASSERTIONS
)
endif
()
endif
()
if
(
NOT CK_BUILD_HOST_LIB
)
## HIP
## HIP
set
(
CMAKE_HIP_PLATFORM amd
)
set
(
CMAKE_HIP_PLATFORM amd
)
set
(
CMAKE_HIP_COMPILER
${
CMAKE_CXX_COMPILER
}
)
set
(
CMAKE_HIP_COMPILER
${
CMAKE_CXX_COMPILER
}
)
...
@@ -346,8 +338,6 @@ else()
...
@@ -346,8 +338,6 @@ else()
add_compile_definitions
(
__HIP_PLATFORM_HCC__=1
)
add_compile_definitions
(
__HIP_PLATFORM_HCC__=1
)
endif
()
endif
()
endif
()
# NOT CK_BUILD_HOST_LIB
## tidy
## tidy
include
(
EnableCompilerWarnings
)
include
(
EnableCompilerWarnings
)
set
(
CK_TIDY_ERRORS ERRORS * -readability-inconsistent-declaration-parameter-name
)
set
(
CK_TIDY_ERRORS ERRORS * -readability-inconsistent-declaration-parameter-name
)
...
@@ -501,8 +491,6 @@ include_directories(BEFORE
...
@@ -501,8 +491,6 @@ include_directories(BEFORE
${
HIP_INCLUDE_DIRS
}
${
HIP_INCLUDE_DIRS
}
)
)
if
(
NOT CK_BUILD_HOST_LIB
)
SET
(
BUILD_DEV ON CACHE BOOL
"BUILD_DEV"
)
SET
(
BUILD_DEV ON CACHE BOOL
"BUILD_DEV"
)
if
(
BUILD_DEV
)
if
(
BUILD_DEV
)
add_compile_options
(
-Werror
)
add_compile_options
(
-Werror
)
...
@@ -510,8 +498,6 @@ if(BUILD_DEV)
...
@@ -510,8 +498,6 @@ if(BUILD_DEV)
endif
()
endif
()
message
(
"CMAKE_CXX_FLAGS:
${
CMAKE_CXX_FLAGS
}
"
)
message
(
"CMAKE_CXX_FLAGS:
${
CMAKE_CXX_FLAGS
}
"
)
endif
()
# NOT CK_BUILD_HOST_LIB
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
add_compile_options
(
-fcolor-diagnostics
)
add_compile_options
(
-fcolor-diagnostics
)
endif
()
endif
()
...
@@ -521,8 +507,6 @@ endif()
...
@@ -521,8 +507,6 @@ endif()
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure -C
${
CMAKE_CFG_INTDIR
}
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure -C
${
CMAKE_CFG_INTDIR
}
)
if
(
NOT CK_BUILD_HOST_LIB
)
file
(
GLOB_RECURSE INSTANCE_FILES
"
${
PROJECT_SOURCE_DIR
}
/*/device_*_instance.cpp"
)
file
(
GLOB_RECURSE INSTANCE_FILES
"
${
PROJECT_SOURCE_DIR
}
/*/device_*_instance.cpp"
)
file
(
GLOB dir_list RELATIVE
${
PROJECT_SOURCE_DIR
}
/library/src/tensor_operation_instance/gpu
${
PROJECT_SOURCE_DIR
}
/library/src/tensor_operation_instance/gpu/*
)
file
(
GLOB dir_list RELATIVE
${
PROJECT_SOURCE_DIR
}
/library/src/tensor_operation_instance/gpu
${
PROJECT_SOURCE_DIR
}
/library/src/tensor_operation_instance/gpu/*
)
set
(
CK_DEVICE_INSTANCES
)
set
(
CK_DEVICE_INSTANCES
)
...
@@ -591,18 +575,6 @@ if(CK_USE_CODEGEN AND (GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS))
...
@@ -591,18 +575,6 @@ if(CK_USE_CODEGEN AND (GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS))
add_subdirectory
(
codegen
)
add_subdirectory
(
codegen
)
endif
()
endif
()
else
()
# NOT CK_BUILD_HOST_LIB
if
(
GPU_TARGETS MATCHES
"gfx9"
)
rocm_package_setup_component
(
ck_host
LIBRARY_NAME composablekernel
PACKAGE_NAME ck_host
)
add_subdirectory
(
codegen
)
endif
()
endif
()
# NOT CK_BUILD_HOST_LIB
#Create an interface target for the include only files and call it "composablekernels"
#Create an interface target for the include only files and call it "composablekernels"
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
...
...
Config.cmake.in
View file @
6d597346
@PACKAGE_INIT@
@PACKAGE_INIT@
set(_composable_kernel_supported_components device_other_operations device_gemm_operations device_conv_operations device_mha_operations device_contraction_operations device_reduction_operations utility
ck_host
)
set(_composable_kernel_supported_components device_other_operations device_gemm_operations device_conv_operations device_mha_operations device_contraction_operations device_reduction_operations utility)
foreach(_comp ${composable_kernel_FIND_COMPONENTS})
foreach(_comp ${composable_kernel_FIND_COMPONENTS})
if(NOT _comp IN_LIST _composable_kernel_supported_components)
if(NOT _comp IN_LIST _composable_kernel_supported_components)
...
...
codegen/CMakeLists.txt
View file @
6d597346
...
@@ -52,7 +52,7 @@ rocm_export_targets(
...
@@ -52,7 +52,7 @@ rocm_export_targets(
NAMESPACE composable_kernel::
NAMESPACE composable_kernel::
)
)
if
(
BUILD_TESTING
AND NOT CK_BUILD_HOST_LIB
)
if
(
BUILD_TESTING
)
add_subdirectory
(
test
)
add_subdirectory
(
test
)
endif
()
endif
()
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