Things to do
- First module load anaconda/full/2021.05
- Create conda environment (python 3.9 best/safest in terms of package dependencies), restart terminal, and activate conda environment
- Install packages conda install numpy, scipy, matplotlib conda install -c conda-forge CuPy conda install -c conda-forge PyCuda (could have conflicts, doing it twice can resolve it)
- module load nvidia/cuda
- Run sbatch task.sh with TestPacakaged.out for output file (which first tests all installed packages and then the main file). Once we see in the output file that. NumPy Works CuPy Works PyCuda Works We can comment line 15 on task.sh for further runs
- In main.py file change the Algorithm to either NumPy for CPU computation, CuPy for GPU, or PyCuda (2 separate options) for advanced GPU in line 110, and set desired Element size on line 130
- For mesh study, the Settings[‘MeshStudy’] has to be made True on line 111 in main.py. Run task.sh again with any output file desired (some commented option in slurm file task.sh)