Skip to content

Commit 7a52ee5

Browse files
authored
Merge pull request #276 from rahul7rajdn/apptainer_update
added Libraries to Apptainer; other minor updates
2 parents 316f2ad + e5174d2 commit 7a52ee5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.vscode
33
*.cache
44
*.code-workspace
5+
miscs/apptainer/vortex.sif

miscs/apptainer/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Apptainer Build Process
22

3-
Use the Slurm scheduler to request an interactive job on Flubber9
3+
Use the Slurm scheduler to request an interactive job on Flubber1
44
```
5-
salloc -p rg-fpga --nodes=1 --ntasks-per-node=64 --mem=16G --nodelist flubber9 --time=01:00:00
5+
salloc -p rg-fpga --nodes=1 --ntasks-per-node=16 --mem=16G --nodelist flubber1 --time=08:00:00
66
```
77

88
Go to `apptainer` directory
@@ -96,7 +96,7 @@ Apptainer> verilator --version
9696
Verilator 5.026 2024-06-15 rev v5.026-43-g065f36ab5
9797
9898
Apptainer> cd hw/syn/xilinx/xrt
99-
Apptainer> PREFIX=test1 PLATFORM=xilinx_u50_gen3x16_xdma_5_202210_1 TARGET=hw NUM_CORES=1 make > build_u50_hw_1c.log 2>&1 &
99+
Apptainer> PREFIX=test1 PLATFORM=xilinx_u50_gen3x16_xdma_5_202210_1 TARGET=hw NUM_CORES=1 make JOBS=<number of cores allocated> > build_u50_hw_1c.log 2>&1 &
100100
Creates ../test1_xilinx_u50_gen3x16_xdma_5_202210_1_hw/bin/vortex_afu.xclbin
101101
```
102102

@@ -108,8 +108,8 @@ Apptainer> pwd
108108
109109
Apptainer> make -C runtime/ clean
110110
111-
Apptainer> FPGA_BIN_DIR=hw/syn/xilinx/xrt/test1_xilinx_u50_gen3x16_xdma_5_202210_1_hw/bin TARGET=hw PLATFORM=xilinx_u50_gen3x16_xdma_5_202210_1 ./ci/blackbox.sh --driver=xrt --app=demo
111+
Apptainer> FPGA_BIN_DIR=/home/vortex/build/hw/syn/xilinx/xrt/test1_xilinx_u50_gen3x16_xdma_5_202210_1_hw/bin TARGET=hw PLATFORM=xilinx_u50_gen3x16_xdma_5_202210_1 ./ci/blackbox.sh --driver=xrt --app=demo
112112
113113
Verify following line being printed:
114114
info: device name=xilinx_u50_gen3x16_xdma_base_5, memory_capacity=0x200000000 bytes, memory_banks=32.
115-
```
115+
```

miscs/apptainer/vortex.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ From: ubuntu:22.04
4444
openjdk-11-jre-headless libcairo2 librsvg2-2 librsvg2-common \
4545
openjdk-11-jre-zero libtheora0 libavcodec58 libcairo-gobject2 \
4646
ca-certificates-java libchromaprint1 software-properties-common perl-modules bzip2 \
47-
unzip zlib1g-dev libtinfo5 g++ usbutils gawk bison gcc make tar python3.9 locales zstd uuid-dev ccache || true
47+
unzip zlib1g-dev libtinfo5 g++ usbutils pciutils gawk bison gcc make tar python3.9 locales zstd uuid-dev ccache \
48+
libboost-filesystem1.74.0 libboost-program-options1.74.0 libboost-system1.74.0 libboost-chrono1.74.0 libboost-thread1.74.0 environment-modules || true
4849

4950
ln -s /usr/bin/python3 /usr/bin/python
5051

@@ -97,4 +98,4 @@ From: ubuntu:22.04
9798
locale
9899
lsusb || echo "lsusb not available"
99100
ls -l /dev/null
100-
echo "Container test successful!"
101+
echo "Container test successful!"

0 commit comments

Comments
 (0)