mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[DOCS] update build instructions, and add testing instrs. (#2400)
- Note `wheel` as a build-time dependency. - Add tips for getting a faster build. - Add instructions for running tests. - Add flag to build with ccache. (Thanks to @ThomasRaoux for most of these instructions!)
This commit is contained in:
@@ -273,6 +273,11 @@ class CMakeBuild(build_ext):
|
||||
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld",
|
||||
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld"]
|
||||
|
||||
if check_env_flag("TRITON_BUILD_WITH_CCACHE"):
|
||||
cmake_args += [
|
||||
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
|
||||
]
|
||||
|
||||
env = os.environ.copy()
|
||||
cmake_dir = get_cmake_dir()
|
||||
subprocess.check_call(["cmake", self.base_dir] + cmake_args, cwd=cmake_dir, env=env)
|
||||
|
||||
Reference in New Issue
Block a user