Skip to content

Commit

Permalink
Merge pull request llvm#46 from ROCm/python_generated_offload_arch
Browse files Browse the repository at this point in the history
rewrite make_generated_offload_arch script in Python
  • Loading branch information
apwojcik authored Apr 15, 2024
2 parents cc21965 + 7b4ca1e commit bb4c0df
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 665 deletions.
6 changes: 4 additions & 2 deletions llvm/lib/OffloadArch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
find_package(Python3 REQUIRED COMPONENTS Interpreter)

add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated_offload_arch.h
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/make_generated_offload_arch_h.sh ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/make_generated_offload_arch_h.py ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/make_generated_offload_arch_h.sh
${CMAKE_CURRENT_SOURCE_DIR}/make_generated_offload_arch_h.py
${CMAKE_CURRENT_SOURCE_DIR}/amdgpu/pciid2codename.txt
${CMAKE_CURRENT_SOURCE_DIR}/amdgpu/codename2offloadarch.txt
${CMAKE_CURRENT_SOURCE_DIR}/nvidia/pciid2codename.txt
Expand Down
Loading

0 comments on commit bb4c0df

Please sign in to comment.