summaryrefslogtreecommitdiff
path: root/lib/spack/docs/build_systems
diff options
context:
space:
mode:
authorAndrey Parfenov <andrey.parfenov@intel.com>2023-07-07 05:47:54 +0200
committerGitHub <noreply@github.com>2023-07-07 03:47:54 +0000
commitae00d7c3583008a6baeb860787c779bae320c05a (patch)
tree1c64c757abdcaad06e4d763a67f891b73737cd53 /lib/spack/docs/build_systems
parent1071c1d8e08ca86dc73a04bdc6060f464c76564c (diff)
downloadspack-ae00d7c3583008a6baeb860787c779bae320c05a.tar.gz
spack-ae00d7c3583008a6baeb860787c779bae320c05a.tar.bz2
spack-ae00d7c3583008a6baeb860787c779bae320c05a.tar.xz
spack-ae00d7c3583008a6baeb860787c779bae320c05a.zip
add info about spack env from spack-configs for oneAPI build tools (#38751)
Signed-off-by: Andrey Parfenov <andrey.parfenov@intel.com>
Diffstat (limited to 'lib/spack/docs/build_systems')
-rw-r--r--lib/spack/docs/build_systems/inteloneapipackage.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/spack/docs/build_systems/inteloneapipackage.rst b/lib/spack/docs/build_systems/inteloneapipackage.rst
index 410294c1b0..102e26f4fb 100644
--- a/lib/spack/docs/build_systems/inteloneapipackage.rst
+++ b/lib/spack/docs/build_systems/inteloneapipackage.rst
@@ -76,6 +76,53 @@ To build with with ``icx``, do ::
spack install patchelf%oneapi
+
+Using oneAPI Spack environment
+-------------------------------
+
+In this example, we build lammps with ``icx`` using Spack environment for oneAPI packages created by Intel. The
+compilers are installed with Spack like in example above.
+
+Install the oneAPI compilers::
+
+ spack install intel-oneapi-compilers
+
+Add the compilers to your ``compilers.yaml`` so Spack can use them::
+
+ spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin/intel64
+ spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin
+
+Verify that the compilers are available::
+
+ spack compiler list
+
+Clone `spack-configs <https://github.com/spack/spack-configs>`_ repo and activate Intel oneAPI CPU environment::
+
+ git clone https://github.com/spack/spack-configs
+ spack env activate spack-configs/INTEL/CPU
+ spack concretize -f
+
+`Intel oneAPI CPU environment <https://github.com/spack/spack-configs/blob/main/INTEL/CPU/spack.yaml>`_ contains applications tested and validated by Intel, this list is constantly extended. And currently it supports:
+
+- `GROMACS <https://www.gromacs.org/>`_
+- `HPCG <https://www.hpcg-benchmark.org/>`_
+- `HPL <https://netlib.org/benchmark/hpl/>`_
+- `LAMMPS <https://www.lammps.org/#gsc.tab=0>`_
+- `OpenFOAM <https://www.openfoam.com/>`_
+- `STREAM <https://www.cs.virginia.edu/stream/>`_
+- `WRF <https://github.com/wrf-model/WRF>`_
+
+To build lammps with oneAPI compiler from this environment just run::
+
+ spack install lammps
+
+Compiled binaries can be find using::
+
+ spack cd -i lammps
+
+You can do the same for all other applications from this environment.
+
+
Using oneAPI MPI to Satisfy a Virtual Dependence
------------------------------------------------------