Replies: 4 comments 1 reply
-
the information in your post is incomplete. I have a virtual ubuntu 20.04
system on my pc. I tried installing spack (and Spack) using apt but apt
could not find it. I then was able to install it using your git clone
command. I ran the setup-env.sh (note: the script was not executable).
wasn't clear to me what the the spack info fds command was Maybe I'm
missing something but I didn't see how to implement steps 2 through 5. I
suggest you add some more details, and repost and ask other readers of the
forum to try it out if they are interested. what does spack do that the
fds installation script doesn't do?
…On Tue, Oct 8, 2024 at 4:46 AM kjrstory ***@***.***> wrote:
Hello,
I have written an installation script for FDS using the package manager
Spack <https://github.com/spack/spack>. However, it seems that not many
people are using it yet. I believe that if I include the following
information in this wiki, more people would benefit from it.
I would like to ask in advance if it is okay to add this to the wiki in
this way. If it is not desired, I plan to post the information on my
personal blog instead.
------------------------------
To simplify the installation of the source code, FDS can be installed
using Spack. The following guide explains how to install FDS using Spack on
Ubuntu 20.04.
Step 1. Install Spack
To use Spack, install the following prerequisite packages:
apt update
apt install build-essential ca-certificates coreutils curl environment-modules gfortran git gpg lsb-release python3 python3-distutils python3-venv unzip zip
Spack can be installed by cloning the GitHub repository without any
additional prerequisites:
git clone -c feature.manyFiles=true --depth=2 https://github.com/spack/spack.git
Once installed, apply the environment variables with the following command (for bash environment):
. spack/share/spack/setup-env.sh
Now, you can check the installation information for the FDS package using the spack info fds command:
Step 2. Configure the Compiler in Spack
...
Step 3: Install FDS using GNU Fortran (GCC) + Open MPI
...
Step 4: Install FDS using Intel oneAPI + Intel MPI
...
Step 5: Install FDS using Intel oneAPI + Intel MPI + OpenMP
...
—
Reply to this email directly, view it on GitHub
<#13543>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC6UCRRPQ4PH3AM6XYXMFQTZ2OLXPAVCNFSM6AAAAABPRVNVXGVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGI4DSNJZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Glenn Forney
|
Beta Was this translation helpful? Give feedback.
-
Spack Guide for Installing and Running FDSThis guide was performed on an Ubuntu 20.04 environment with Intel Ice Lake architecture. Step 1: Install Spack (Dependencies and GitHub Clone)To use Spack, install the required dependencies as follows: apt update
apt install build-essential ca-certificates coreutils curl environment-modules gfortran git gpg lsb-release python3 python3-distutils python3-venv unzip zip Spack can be installed by cloning the GitHub repository without any additional pre-packages:
Once installed, apply the environment variables as follows. This command is for use in a bash environment:
You can now view the installation information of the FDS package using the spack info fds command:
Step 2: Configure Spack CompilerFirst, configure the compiler for the source code. Use the command below to see the registered compilers:
No compilers have been registered yet. Use the command below to automatically find and register available compilers:
On my Ubuntu 20.04, the gcc versions were installed. Let's install intel-oneapi using spack:
Now we can see that two compilers are registered with Spack:
Step 3: Install FDS with GNU Fortran (GCC) + Open MPITo install FDS with the combination of GNU Fortran and Open MPI, use the following command:
This command will install FDS using GNU Fortran (GCC) and Open MPI, and all dependencies will be automatically handled. Below is a portion of the installation log:
Step 4: Install FDS with Intel oneAPI + Intel MPI (+ OpenMP)To install FDS using Intel oneAPI compiler and Intel MPI, use the following command:
To enable OpenMP functionality, use the following command:
These commands will install FDS with the combination of Intel oneAPI and Intel MPI, with optional OpenMP support. Here, Step 5: Loading the FDS EnvironmentSpack allows you to install multiple versions of software simultaneously and switch between them as needed. To check the installed FDS packages, use the following command:
Let's first use the version of Spack installed with GNU Fortran:
Now let's use the version of FDS installed with oneAPI:
Here, ~ indicates the version without OpenMP. If you use the version with OpenMP, it should work properly:
If you use the version with OpenMP, it will work as expected. |
Beta Was this translation helpful? Give feedback.
-
Here are the key differences between installing FDS using Spack and the traditional FDS installation script:
Spack also uses FDS's Makefile to perform the installation, similar to the traditional method. This means that the core build process remains consistent, but Spack adds enhanced management capabilities on top of it. @gforney |
Beta Was this translation helpful? Give feedback.
-
Thanks. Ill take a look. It may be awhile though
…On Thu, Oct 10, 2024, 10:11 PM kjrstory ***@***.***> wrote:
Here are the key differences between installing FDS using Spack and the
traditional FDS installation script:
1.
Dependency Management: With Spack, all required dependencies are
automatically handled, whereas the traditional script requires you to
manually identify, download, and install each dependency. For FDS, notable
dependencies include MPI and MKL, which Spack can install all at once,
simplifying the process significantly.
2.
Compiler Flexibility: Spack allows you to easily register and manage
multiple compilers, such as GCC and Intel oneAPI. The traditional
installation often requires you to manually set up and configure the
appropriate compiler.
3.
Multiple Configurations: Spack supports installing multiple versions
of the same software concurrently, enabling easy testing with different
compiler and MPI combinations. The traditional installation does not
provide this kind of flexibility out of the box.
4.
Variants and Features: Spack provides an easy way to include optional
features (variants) like OpenMP support with simple commands (+openmp). The
traditional method requires modifying the build process manually to add
such features.
Spack also uses FDS's Makefile to perform the installation, similar to the
traditional method. This means that the core build process remains
consistent, but Spack adds enhanced management capabilities on top of it.
@gforney <https://github.com/gforney>
Please read the above guide and my opinions and try again.
—
Reply to this email directly, view it on GitHub
<#13543 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC6UCRUSMRSXHIR3ZRIW3YTZ24XV7AVCNFSM6AAAAABPRVNVXGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJRGAZTANI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I have written an installation script for FDS using the package manager Spack. However, it seems that not many people are using it yet. I believe that if I include the following information in this wiki, more people would benefit from it.
I would like to ask in advance if it is okay to add this to the wiki in this way. If it is not desired, I plan to post the information on my personal blog instead.
To simplify the installation of the source code, FDS can be installed using Spack. The following guide explains how to install FDS using Spack on Ubuntu 20.04.
Step 1. Install Spack
To use Spack, install the following prerequisite packages:
Spack can be installed by cloning the GitHub repository without any additional prerequisites:
Once installed, apply the environment variables with the following command (for bash environment):
Now, you can check the installation information for the FDS package using the spack info fds command:
Step 2. Configure the Compiler in Spack
...
Step 3: Install FDS using GNU Fortran (GCC) + Open MPI
...
Step 4: Install FDS using Intel oneAPI + Intel MPI
...
Step 5: Install FDS using Intel oneAPI + Intel MPI + OpenMP
...
Beta Was this translation helpful? Give feedback.
All reactions