-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77c14ab
commit db7d469
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -eu -o errtrace | ||
|
||
this_dir="$(cd $(dirname $0) && pwd)" | ||
repo_root="$(cd $this_dir/../.. && pwd)" | ||
torch_version="${1:-unknown}" | ||
|
||
export CMAKE_TOOLCHAIN_FILE="$this_dir/linux_default_toolchain.cmake" | ||
export CC=clang | ||
export CXX=clang++ | ||
export CCACHE_DIR="${cache_dir}/ccache" | ||
export CCACHE_MAXSIZE="350M" | ||
export CMAKE_C_COMPILER_LAUNCHER=ccache | ||
export CMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
|
||
cmake --build $repo_root/build --target check-torch-mlir-all |