Skip to content

Instantly share code, notes, and snippets.

@ryan-williams
Last active May 1, 2024 17:41
Show Gist options
  • Save ryan-williams/3bd494db77da4faa7b30e30d7bf58182 to your computer and use it in GitHub Desktop.
Save ryan-williams/3bd494db77da4faa7b30e30d7bf58182 to your computer and use it in GitHub Desktop.
Minimal TileDB-SOMA source build on an EC2 Graviton instance

Build TileDB-SOMA on EC2 Graviton (ARM) instance

Launch instance

Using launch_instance.py:

eli -a ami-0c29a2c5cf69b5a9c -i r7g.4xlarge

(AMI ami-0c29a2c5cf69b5a9c: "Canonical, Ubuntu, 24.04 LTS, arm64 noble image build on 2024-04-23")

Install system deps + TileDB-SOMA

wget https://gist.githubusercontent.com/ryan-williams/3bd494db77da4faa7b30e30d7bf58182/raw/e0309137e9f7d0b9a3ac18fac951ce40cd468815/init-graviton-ubuntu.sh
bash init-graviton-ubuntu.sh # pass "build=Debug" for debug build
#
# real	24m30.800s
# user	105m52.304s
# sys	6m15.576s
#!/usr/bin/env bash
set -ex
sudo apt-get update -y
sudo apt-get install -y \
cmake \
curl \
g++ \
libhdf5-dev \
make \
ninja-build \
pkg-config \
python3-dev \
python3-venv \
tar \
unzip \
zip
export VCPKG_FORCE_SYSTEM_BINARIES=1 # https://github.com/microsoft/vcpkg/issues/35066
git clone https://github.com/single-cell-data/TileDB-SOMA
cd TileDB-SOMA
python3 -m venv .venv
. .venv/bin/activate
time make install "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment