Skip to content

Add GPU mapmaker (sogma) to perlmutter build#85

Open
Bai-Chiang wants to merge 1 commit intomainfrom
sogma
Open

Add GPU mapmaker (sogma) to perlmutter build#85
Bai-Chiang wants to merge 1 commit intomainfrom
sogma

Conversation

@Bai-Chiang
Copy link
Copy Markdown
Contributor

Not sure if this could merge into official build. There are bunch of ugly symlink installation to get the GPU mapmaker (sogma) to work. Several packages needs 1) clone repo 2) build 3) symlink to site-packages

conda_exec env config vars set SOPATH=/global/cfs/cdirs/sobs
conda_exec env config vars set PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig:$CONDA_PREFIX/share/pkgconfig:$PKG_CONFIG_PATH
conda_exec deactivate
conda_exec activate "${fullenv}"
mkdir -p $CONDA_PREFIX/git
echo ''
echo ''
cd $CONDA_PREFIX/git
git clone https://github.com/amaurea/fast_g3.git
cd $CONDA_PREFIX/git/fast_g3
make clean && make -j4 && ln -sf $CONDA_PREFIX/git/fast_g3/fast_g3 $CONDA_PREFIX/lib/python${python_major_minor}/site-packages/fast_g3
echo ''
echo ''
cd $CONDA_PREFIX/git
git clone https://github.com/amaurea/cpu_mm.git
cd $CONDA_PREFIX/git/cpu_mm
make clean && make -j4 && ln -sf $CONDA_PREFIX/git/cpu_mm/python $CONDA_PREFIX/lib/python${python_major_minor}/site-packages/cpu_mm
echo ''
echo ''
cd $CONDA_PREFIX/git
git clone https://github.com/amaurea/gpu_mm.git
cd $CONDA_PREFIX/git/gpu_mm
make clean && make -j4 && ln -sf $CONDA_PREFIX/git/gpu_mm/gpu_mm $CONDA_PREFIX/lib/python${python_major_minor}/site-packages/gpu_mm
echo ''
echo ''
cd $CONDA_PREFIX/git
git clone https://github.com/amaurea/sogma.git
cd $CONDA_PREFIX/git/sogma
ln -sf $CONDA_PREFIX/git/sogma/python $CONDA_PREFIX/lib/python${python_major_minor}/site-packages/sogma
ln -sf $CONDA_PREFIX/git/sogma/bin/sogma $CONDA_PREFIX/bin/sogma
ln -sf $CONDA_PREFIX/git/sogma/bin/solist $CONDA_PREFIX/bin/solist
ln -sf $CONDA_PREFIX/git/sogma/bin/soplanet $CONDA_PREFIX/bin/soplanet
ln -sf $CONDA_PREFIX/git/sogma/bin/sosplit $CONDA_PREFIX/bin/sosplit
echo ''
echo ''
cd $CONDA_PREFIX/git
git clone https://github.com/amaurea/tenki.git
ln -sf $CONDA_PREFIX/git/tenki/enplot $CONDA_PREFIX/bin/enplot

@Bai-Chiang Bai-Chiang force-pushed the sogma branch 2 times, most recently from 8031075 to 76da180 Compare April 22, 2026 16:55
@Bai-Chiang Bai-Chiang marked this pull request as ready for review April 22, 2026 22:11
@Bai-Chiang Bai-Chiang marked this pull request as draft April 23, 2026 19:21
@Bai-Chiang Bai-Chiang force-pushed the sogma branch 5 times, most recently from 492c92d to 1d73e6d Compare April 24, 2026 03:50
@Bai-Chiang Bai-Chiang changed the title Sogma Add GPU mapmaker (sogma) to perlmutter build Apr 28, 2026
@Bai-Chiang Bai-Chiang marked this pull request as ready for review April 28, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant