misc: Change devcontainer for isca tutorial

Change-Id: I4e946bf32b5ad362ff34de5d354fe29cd26fc0cb
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Jason Lowe-Power
2024-06-24 12:18:51 -07:00
parent ebfb8999cb
commit 5961b0ba76
3 changed files with 24 additions and 152 deletions

View File

@@ -1,3 +1,4 @@
# Copyright (c) 2024 The Regents of the University of California
# All Rights Reserved.
#
@@ -43,11 +44,30 @@ FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:late
RUN git clone --branch v24.0 https://github.com/gem5/gem5
WORKDIR /gem5
RUN scons build/ALL/gem5.opt -j`nproc`
RUN scons defconfig build/ALL_CHI build_opts/ALL && \
scons setconfig build/ALL_CHI RUBY_PROTOCOL_CHI=y && \
scons build/ALL_CHI/gem5.opt -j`nproc`
RUN scons build/VEGA_X86/gem5.opt -j`nproc`
# Stage 2: The final stage where we create the devcontainer image.
# Stage 2: Create the devcontainer image.
# This includes all dependencies for building and running gem5, the
# dependencies for developing gem5, and a pre-built gem5 binary.
FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
COPY --from=builder /gem5/build/ALL/gem5.opt /usr/local/bin/gem5-mesi
COPY --from=builder /gem5/build/ALL_CHI/gem5.opt /usr/local/bin/gem5
COPY --from=builder /gem5/build/VEGA_X86/gem5.opt /usr/local/bin/gem5-vega
# Stage 3: Install additional packages.
# While the base image includes all dependencies for building and running gem5,
# we install packages which are useful when running in a dev container and/or
# developing gem5. (e.g. vim to edit files, qemu for building disk images,
# etc.).
RUN apt -y update && \
apt -y install vim
COPY --from=builder /gem5/build/ALL/gem5.opt /usr/local/bin/gem5
apt -y install \
vim \
qemu-system \
qemu-kvm \
g++-aarch64-linux-gnu \
g++-riscv64-linux-gnu \
gcc-aarch64-linux-gnu \
gcc-riscv64-linux-gnu

View File

@@ -32,7 +32,7 @@ variable "IMAGE_URI" {
}
variable "TAG" {
default = "latest"
default = "bootcamp-2024"
}
# A group of targets to be built. Note: groups can contain other groups.

View File

@@ -1,148 +0,0 @@
---
version: '2'
services:
gcn-gpu:
build:
context: gcn-gpu
dockerfile: Dockerfile
image: ghcr.io/gem5/gcn-gpu:latest
gpu-fs:
build:
context: gpu-fs
dockerfile: Dockerfile
image: ghcr.io/gem5/gpu-fs:latest
sst:
build:
context: sst
dockerfile: Dockerfile
image: ghcr.io/gem5/sst-env:latest
systemc:
build:
context: systemc-2.3.3
dockerfile: Dockerfile
image: ghcr.io/gem5/systemc-env:latest
ubuntu-20.04_all-dependencies:
build:
context: ubuntu-20.04_all-dependencies
dockerfile: Dockerfile
image: ghcr.io/gem5/ubuntu-20.04_all-dependencies:latest
ubuntu-22.04_all-dependencies:
build:
context: ubuntu-22.04_all-dependencies
dockerfile: Dockerfile
image: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest
ubuntu-24.04_all-dependencies:
build:
context: ubuntu-24.04_all-dependencies
dockerfile: Dockerfile
image: ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
ubuntu-24.04_min-dependencies:
build:
context: ubuntu-24.04_min-dependencies
dockerfile: Dockerfile
image: ghcr.io/gem5/ubuntu-24.04_min-dependencies:latest
gcc-10:
build:
context: ubuntu-20.04_gcc-version
dockerfile: Dockerfile
args:
- version=10
image: ghcr.io/gem5/gcc-version-10:latest
gcc-11:
build:
context: ubuntu-22.04_gcc-version
dockerfile: Dockerfile
args:
- version=11
image: ghcr.io/gem5/gcc-version-11:latest
gcc-12:
build:
context: ubuntu-22.04_gcc-version
dockerfile: Dockerfile
args:
- version=12
image: ghcr.io/gem5/gcc-version-12:latest
gcc-13:
build:
context: ubuntu-22.04_gcc_13-version
dockerfile: Dockerfile
image: ghcr.io/gem5/gcc-version-13:latest
clang-7:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=7
image: ghcr.io/gem5/clang-version-7:latest
clang-8:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=8
image: ghcr.io/gem5/clang-version-8:latest
clang-9:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=9
image: ghcr.io/gem5/clang-version-9:latest
clang-10:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=10
image: ghcr.io/gem5/clang-version-10:latest
clang-11:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=11
image: ghcr.io/gem5/clang-version-11:latest
clang-12:
build:
context: ubuntu-20.04_clang-version
dockerfile: Dockerfile
args:
- version=12
image: ghcr.io/gem5/clang-version-12:latest
clang-13:
build:
context: ubuntu-22.04_clang-version
dockerfile: Dockerfile
args:
- version=13
image: ghcr.io/gem5/clang-version-13:latest
clang-14:
build:
context: ubuntu-22.04_clang-version
dockerfile: Dockerfile
args:
- version=14
image: ghcr.io/gem5/clang-version-14:latest
clang-15:
build:
context: ubuntu-22.04_clang-version
dockerfile: Dockerfile
args:
- version=15
image: ghcr.io/gem5/clang-version-15:latest
clang-16:
build:
context: ubuntu-22.04_clang-16
dockerfile: Dockerfile
image: ghcr.io/gem5/clang-version-16:latest
llvm-gnu-cross-compiler-riscv64:
build:
context: llvm-gnu-cross-compiler-riscv64
dockerfile: Dockerfile
image: ghcr.io/gem5/llvm-gnu-cross-compiler-riscv64:latest
gem5-all-min-dependencies:
build:
context: gem5-all-min-dependencies
dockerfile: Dockerfile
image: ghcr.io/gem5/gem5-all-min-dependencies:latest