Skip to content

Commit

Permalink
#8114: Properly declare tt_eager/queue lib before tt_eager/tensor and…
Browse files Browse the repository at this point in the history
… tt_dnn and put it as a dependency for tt_eager/tensor, as you could've seen this error when doing make build && make tests
  • Loading branch information
tt-rkim authored and ayerofieiev-tt committed May 13, 2024
1 parent 98646cf commit 37862d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
# So we can get all the makefile output we want
SILENT: 0
runs-on: ${{ matrix.config.runs-on }}
name: build ${{ matrix.config.type }} ${{ matrix.arch }}
name: make build ${{ matrix.config.type }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
arch: [grayskull, wormhole_b0]
os: [ubuntu-20.04]
needs: build-lib
name: build cpptest ${{ matrix.config }} ${{ matrix.arch }}
name: make build cpptest ${{ matrix.config }} ${{ matrix.arch }}
env:
ARCH_NAME: ${{ matrix.arch }}
CONFIG: ${{ matrix.config }}
Expand Down
2 changes: 1 addition & 1 deletion tt_eager/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ EAGER_OUTPUT_DIR = $(OUT)/dist

TT_EAGER_INCLUDES = $(TT_METAL_BASE_INCLUDES) -Itt_eager/ -I ttnn/cpp/

include tt_eager/queue/module.mk
include tt_eager/tensor/module.mk
include tt_eager/tt_dnn/module.mk
include tt_eager/queue/module.mk
include tt_eager/tt_lib/module.mk

TT_LIBS_TO_BUILD = tt_eager/tensor \
Expand Down
2 changes: 1 addition & 1 deletion tt_eager/tensor/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TENSOR_DEPS = $(addprefix $(OBJDIR)/, $(TENSOR_SRCS:.cpp=.d))
# Each module has a top level target as the entrypoint which must match the subdir name
tt_eager/tensor: $(TENSOR_LIB)

$(TENSOR_LIB): $(COMMON_LIB) $(TT_METAL_LIB) $(TENSOR_OBJS)
$(TENSOR_LIB): $(COMMON_LIB) $(TT_METAL_LIB) $(TENSOR_OBJS) $(QUEUE_LIB)
@mkdir -p $(LIBDIR)
ar rcs -o $@ $(TENSOR_OBJS)

Expand Down

0 comments on commit 37862d7

Please sign in to comment.