Skip to content

Commit 6b59f26

Browse files
address review comments
Signed-off-by: Whitney Tsang <[email protected]>
1 parent fc33070 commit 6b59f26

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/build-test-reusable.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ jobs:
124124
build_llvm: ${{ inputs.build_llvm }}
125125
use_spirv_backend: ${{ inputs.use_spirv_backend }}
126126
command: >
127-
source ./scripts/capture-hw-details.sh &&
128127
DEBUG=1
129128
python -m build --wheel --no-isolation && pip install dist/*.whl
130129

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,15 @@ def build_extension(self, ext):
481481
cmake_args.append("-DLLVM_EXTERNAL_LIT=" + lit_dir)
482482
cmake_args.extend(thirdparty_cmake_args)
483483

484+
result = subprocess.run(["bash", "./scripts/capture-hw-details.sh"], stdout=subprocess.PIPE,
485+
stderr=subprocess.PIPE, check=True, text=True, env=os.environ.copy())
486+
agama_version = None
487+
for line in result.stdout.splitlines():
488+
if line.startswith("AGAMA_VERSION="):
489+
agama_version = line.split("=", 1)[1].strip()
490+
break
491+
cmake_args.append(f"-DAGAMA_VERSION={agama_version}")
492+
484493
# configuration
485494
cfg = get_build_type()
486495
build_args = ["--config", cfg]

third_party/intel/cmake/FindSPIRVToLLVMTranslator.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (NOT SPIRVToLLVMTranslator_FOUND)
2727
FetchContent_MakeAvailable(spirv-llvm-translator)
2828

2929
# FIXME: Don't apply patch when LTS driver is updated.
30-
if(DEFINED ENV{AGAMA_VERSION} AND "$ENV{AGAMA_VERSION}" STREQUAL "1146")
30+
if(DEFINED AGAMA_VERSION AND AGAMA_VERSION STREQUAL "1146")
3131
execute_process(
3232
COMMAND git apply --check ${CMAKE_CURRENT_LIST_DIR}/3122.patch
3333
WORKING_DIRECTORY ${spirv-llvm-translator_SOURCE_DIR}

0 commit comments

Comments
 (0)