-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 1.27 KB
/
Makefile
File metadata and controls
39 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# IREE Docker Integration Makefile
# Provides convenient commands for building and using IREE Docker containers
.PHONY: help build-cuda build-cpu build-all clean test
# Default target
help:
@echo "IREE Docker Integration Commands:"
@echo " build-cuda Build CUDA-enabled IREE compiler image"
@echo " build-cpu Build CPU-only IREE compiler image"
@echo " build-all Build all IREE compiler images"
@echo " clean Remove built images and temporary files"
@echo " test Run basic functionality tests"
@echo " help Show this help message"
# Build CUDA image
build-cuda:
@echo "Building CUDA IREE compiler image..."
docker build -t iree-compiler:cuda-latest docker/cuda/
# Build CPU image
build-cpu:
@echo "Building CPU IREE compiler image..."
docker build -t iree-compiler:cpu-latest docker/cpu/
# Build all images
build-all: build-cuda build-cpu
@echo "All IREE compiler images built successfully"
# Clean up
clean:
@echo "Cleaning up Docker images and temporary files..."
-docker rmi iree-compiler:cuda-latest iree-compiler:cpu-latest
-docker system prune -f
# Basic functionality test (will be implemented in later tasks)
test:
@echo "Running basic functionality tests..."
@echo "Test implementation pending - will validate Docker images"