Skip to content

Instantly share code, notes, and snippets.

@matthiasdiener
Last active September 20, 2022 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasdiener/479edb060ca26d3f4b3a9aeb45c303ac to your computer and use it in GitHub Desktop.
Save matthiasdiener/479edb060ca26d3f4b3a9aeb45c303ac to your computer and use it in GitHub Desktop.
Install emirge with the Fusion Array Context and SVM support
#!/bin/bash
# A script to install emirge with the Fusion Array Context and SVM support
# THIS SCRIPT IS LIKELY NOT NECESSARY ANYMORE
# Open PRs that are involved for SVM:
# - https://github.com/pocl/pocl/pull/1067
set -ex
# Emirge
git clone git@github.com:illinois-ceesd/emirge svmfuse
cd svmfuse
./install.sh --branch=production
source config/activate_env.sh
# Loopy
cd loopy
## Actually set an argument size limit
sed -i.bak "s,limit_arg_size_nbytes: Optional\[int\] = None,limit_arg_size_nbytes: Optional[int] = 1024," loopy/target/pyopencl.py
cd ..
# Y2-Isolator
git clone git@github.com:illinois-ceesd/drivers_y2-isolator
# Finish
set +x
echo "Installation finished. To test it:"
echo "$ source svmfuse/config/activate_env.sh"
echo "$ cd svmfuse/drivers_y2-isolator/smoke_test"
echo "$ python -m mpi4py isolator.py -i run_params.yaml --lazy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment