Commit aca8169f authored by zhoux's avatar zhoux
Browse files

Remove default hytlass_library install in CMake, add supported DCC compiler links.

parent d22dbec2
...@@ -126,19 +126,6 @@ set(HYTLASS_TEST_LEVEL "0" CACHE STRING "Level of tests to compile.") ...@@ -126,19 +126,6 @@ set(HYTLASS_TEST_LEVEL "0" CACHE STRING "Level of tests to compile.")
find_package(Python3 3.5 COMPONENTS Interpreter REQUIRED) find_package(Python3 3.5 COMPONENTS Interpreter REQUIRED)
# Install hytlass_library Python package
execute_process(
WORKING_DIRECTORY ${HYTLASS_DIR}/python
COMMAND ${Python3_EXECUTABLE} ${HYTLASS_DIR}/python/setup_library.py develop --user
RESULT_VARIABLE hytlass_lib_GENERATOR_INSTALL_RESULT
OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/hytlass_library_installation.log
ERROR_FILE ${CMAKE_CURRENT_BINARY_DIR}/hytlass_library_installation.log
)
if(NOT hytlass_lib_GENERATOR_INSTALL_RESULT EQUAL 0)
message(FATAL_ERROR "Error installing hytlass_library package. See ${CMAKE_CURRENT_BINARY_DIR}/hytlass_library_installation.log")
endif()
################################################################################ ################################################################################
set(HYTLASS_ENABLE_HEADERS_ONLY OFF CACHE BOOL "Enable only the header library") set(HYTLASS_ENABLE_HEADERS_ONLY OFF CACHE BOOL "Enable only the header library")
......
...@@ -49,7 +49,17 @@ HYTLASS 0.1.0是HYTLASS的首次提交,其实现基于CUTLASS 3.5.0,具体 ...@@ -49,7 +49,17 @@ HYTLASS 0.1.0是HYTLASS的首次提交,其实现基于CUTLASS 3.5.0,具体
在其他项目中,HYTLASS作为头文件库不需要单独编译,用户将`include/`目录指定至头文件路径即可。 在其他项目中,HYTLASS作为头文件库不需要单独编译,用户将`include/`目录指定至头文件路径即可。
HYTLASS的单元测试、示例及工具链通过CMake编译,所需最低版本为3.19。 HYTLASS的单元测试、示例及工具链通过CMake编译,其所需编译环境要求如下:
- DCU Toolkit (DCC 25.10或更新版本),详见[DCC编译器](https://download.sourcefind.cn:65024/1/main/compiler)
- CMake 3.19+
- 支持C++17或更高版本的主机端编译器
- Python 3.5+
部分示例和单测中,HYTLASS可能需要编译链接hipBLAS库。
在HYTLASS项目根目录中创建一个build目录,然后执行cmake,你可以通过CMAKE选项`HYTLASS_HIPCC_ARCHS`指定编译的架构。 在HYTLASS项目根目录中创建一个build目录,然后执行cmake,你可以通过CMAKE选项`HYTLASS_HIPCC_ARCHS`指定编译的架构。
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
## Prerequisites ## Prerequisites
HYTLASS requires: HYTLASS requires:
- DCU Toolkit (25.10 or later required) - DCU Toolkit (DCC 25.10 or later required), see [DCC](https://download.sourcefind.cn:65024/1/main/compiler)
- CMake 3.19+ - CMake 3.19+
- host compiler supporting C++17 or greater - host compiler supporting C++17 or greater
- Python 3.5+ - Python 3.5+
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment