Skip to content

Commit

Permalink
#0: Use FetchContent to get SFPI assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-rkim committed Nov 8, 2024
1 parent ab82ec5 commit b3b0d89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 58 deletions.
13 changes: 7 additions & 6 deletions tt_metal/hw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ set(TYPES
kernel
)

add_custom_target(
include(FetchContent)
FetchContent_Declare(
sfpi
${CMAKE_CURRENT_SOURCE_DIR}/sfpi.sh ${CMAKE_CURRENT_SOURCE_DIR}/sfpi.version ${CMAKE_CURRENT_SOURCE_DIR}/sfpi.md5
URL
https://github.com/tenstorrent/sfpi/releases/download/v0.0.0-lfsectomy/sfpi-release.tgz
URL_HASH MD5=3ffa5a871a6289f19617de7293c1dac0
SOURCE_DIR
${PROJECT_SOURCE_DIR}/runtime/sfpi
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/sfpi.version
USES_TERMINAL
)
FetchContent_MakeAvailable(sfpi)

foreach(ARCH IN LISTS ARCHS)
set(DEV_MEM_MAP "${PROJECT_SOURCE_DIR}/tt_metal/hw/inc/${ARCH}/dev_mem_map.h")
Expand Down Expand Up @@ -198,7 +200,6 @@ foreach(ARCH IN LISTS ARCHS)
${GPP_CMD} ${GPP_FLAGS} ${GPP_DEFINES} ${GPP_INCLUDES} -c -o ${HW_LIB_DIR}/${HWLIB}.o ${${HWLIB}_SOURCE}
DEPENDS
${${HWLIB}_SOURCE}
sfpi
COMMENT "Building hw lib ${HWLIB}.o"
VERBATIM
)
Expand Down
1 change: 0 additions & 1 deletion tt_metal/hw/sfpi.md5

This file was deleted.

50 changes: 0 additions & 50 deletions tt_metal/hw/sfpi.sh

This file was deleted.

1 change: 0 additions & 1 deletion tt_metal/hw/sfpi.version

This file was deleted.

0 comments on commit b3b0d89

Please sign in to comment.