Skip to content

Commit

Permalink
[Draft] CPU: Slight Update
Browse files Browse the repository at this point in the history
Modules and job script are to do.
  • Loading branch information
ax3l committed Jul 1, 2023
1 parent a87ba91 commit c11ad66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Docs/source/install/hpc/karolina.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,17 @@ Use the following :ref:`cmake commands <building-cmake>` to compile:

.. tab-item:: CPU Nodes

CPU usage is documentation is TODO.
.. code-block:: bash
cd $HOME/src/warpx
rm -rf build_cpu
cmake -S . -B build_cpu -DWarpX_COMPUTE=OMP -DWarpX_PSATD=ON -DWarpX_QED_TABLE_GEN=ON -DWarpX_LIB=ON -DWarpX_DIMS="1;2;RZ;3"
cmake --build build_cpu -j 12
cmake --build build_cpu -j 12 --target pip_install
**That's it!**
The WarpX application executables are now in ``$HOME/src/warpx/build_cpu/bin/`` and we installed the ``pywarpx`` Python module.

Now, you can :ref:`submit Karolina compute jobs <running-cpp-karolina>` for WarpX :ref:`Python (PICMI) scripts <usage-picmi>` (:ref:`example scripts <usage-examples>`).
Or, you can use the WarpX executables to submit Karolina jobs (:ref:`example inputs <usage-examples>`).
Expand Down
2 changes: 1 addition & 1 deletion Tools/machines/karolina-it4i/install_cpu_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ else
fi
rm -rf $HOME/src/adios2-cpu-build
cmake -S $HOME/src/adios2 -B $HOME/src/adios2-cpu-build -DADIOS2_USE_Blosc=ON -DADIOS2_USE_HDF5=OFF -DADIOS2_USE_Fortran=OFF -DADIOS2_USE_Python=OFF -DADIOS2_USE_ZeroMQ=OFF -DCMAKE_INSTALL_PREFIX=${SW_DIR}/adios2-2.8.3
cmake --build $HOME/src/adios2-cpu-build --target install -j 16
cmake --build $HOME/src/adios2-cpu-build --target install --parallel 16
rm -rf $HOME/src/adios2-cpu-build

# BLAS++ (for PSATD+RZ)
Expand Down

0 comments on commit c11ad66

Please sign in to comment.