Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

SPPARKS with stitch

tekzsbin September 30 2024 11:06

A guide for installing SPPARKS with Stitch in an HPC cluster environment. Due to the complexity of the software, it seems that either the developers have not provided comprehensive documentation, or I may have overlooked it. This document is designed to help you complete the installation process smoothly and without issues.

Our aim is to create a LUA file so that users can simply call command like below to call it. We will also install stitch package on SPPARKS.

ml spparks

I assume you have the SPPARKS files. If not you can clone it from their github page. Also you need to have openmpi installed. In my case I have openmpi as a separate module.

Now, let’s get going… Start with creating a separate a user called spparkuser

useradd spparkuser
passwd spparkuser

Extract the tar.gz file and move the contents to a shared location for all users.

mkdir -p //spparks
mv * //spparks
chown -R spparkuser:spparkuser //spparks

Now login as the spparkuser.

su - spparkuser
ml openmpi
export C_INCLUDE_PATH=/usr/include
cd //spparks/lib/stitch/libstitch
make
cd ..
python3 Install.py -b
cd //spparks/src
make yes-stitch
make mpi

And let’s now go back to being root and create a LUA file for it.

In your lmod directory create a LUA file like 6Sep2023-gcc-13.2.0-nstpl6u.lua and add these in it:

help([[
This module loads SPPARKS (6Sep2023?) with the Stitch library for MPI usage.
]])
whatis("SPPARKS - Stochastic Parallel PARticle Kinetic Simulator with Stitch library support (6Sep2023?)")
if not (isloaded("gcc")) then
 load("gcc")
end
if not (isloaded("openmpi")) then
 load("openmpi")
end
setenv("SPPARKS_HOME", "//spparks")
prepend_path("PATH", "//spparks/src")
prepend_path("LD_LIBRARY_PATH", "//spparks/lib/stitch")
prepend_path("LD_LIBRARY_PATH", "///openmpi/..../lib")

You may need to modify the gcc and openmpi package names that you have in your system along with the environment variables.

Now your users can load the module.

ml spparks

spparks1.jpg (45 KB)spparks2.jpg (22 KB)spparks3.jpg (11 KB)

article provided by: https://www.serdaracir.net/hpc/spparks-with-stitch/

0 comments

0 comments

Leave a Comment

Please Login to Post a Comment.
  • No Comments have been Posted.

Sign In

Not a member yet? Click here to register.
Forgot Password?

Users Online Now

Guests Online 2
Members Online 0

Total Members: 2
Newest Member: sacir


Powered by PHPFusion. Copyright © 2024 PHP Fusion Inc.
Released as free software without warranties under GNU Affero GPL v3.

Theme by PHP Fusion Inc
145,730 unique visits