2023-07-23 23:45:29 +02:00
|
|
|
BOARDS += trt
|
|
|
|
|
2023-07-26 12:50:41 +02:00
|
|
|
JETPACK4_BASE ?= timongentzsch/l4t-ubuntu20-opencv:latest # L4T 32.7.1 JetPack 4.6.1
|
|
|
|
JETPACK5_BASE ?= nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime # L4T 35.3.1 JetPack 5.1.1
|
2024-03-05 13:04:13 +01:00
|
|
|
X86_DGPU_ARGS := ARCH=amd64 COMPUTE_LEVEL="50 60 70 80 90"
|
2023-07-26 12:50:41 +02:00
|
|
|
JETPACK4_ARGS := ARCH=arm64 BASE_IMAGE=$(JETPACK4_BASE) SLIM_BASE=$(JETPACK4_BASE) TRT_BASE=$(JETPACK4_BASE)
|
|
|
|
JETPACK5_ARGS := ARCH=arm64 BASE_IMAGE=$(JETPACK5_BASE) SLIM_BASE=$(JETPACK5_BASE) TRT_BASE=$(JETPACK5_BASE)
|
|
|
|
|
2023-07-23 23:45:29 +02:00
|
|
|
local-trt: version
|
2024-09-17 14:39:44 +02:00
|
|
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=frigate:latest-tensorrt \
|
|
|
|
--load
|
2023-07-26 12:50:41 +02:00
|
|
|
|
|
|
|
local-trt-jp4: version
|
2024-09-17 14:39:44 +02:00
|
|
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=frigate:latest-tensorrt-jp4 \
|
|
|
|
--load
|
2023-07-26 12:50:41 +02:00
|
|
|
|
|
|
|
local-trt-jp5: version
|
2024-09-17 14:39:44 +02:00
|
|
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=frigate:latest-tensorrt-jp5 \
|
|
|
|
--load
|
2023-07-23 23:45:29 +02:00
|
|
|
|
|
|
|
build-trt:
|
2024-09-17 14:39:44 +02:00
|
|
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt
|
|
|
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4
|
|
|
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5
|
2023-07-23 23:45:29 +02:00
|
|
|
|
|
|
|
push-trt: build-trt
|
2024-09-17 14:39:44 +02:00
|
|
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt \
|
|
|
|
--push
|
|
|
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4 \
|
|
|
|
--push
|
|
|
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
|
|
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5 \
|
|
|
|
--push
|