# Intel releases oneAPI Toolkit, free, Fortran 2018

**URL:** <https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471>\
**Category:** Announcements\
**Created:** [December 8, 2020, 9:30pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471 "2020-12-08T21:30:36Z")\
**Posts on this page:** 13\
**Page:** 5

<div class="post-metadata">

**Author:** ![goerz](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/goerz/32/1231_2.png) [@goerz](https://fortran-lang.discourse.group/u/goerz)\
**Post date:** [January 29, 2022, 11:37pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/82 "2022-01-29T23:37:59Z")

</div>

Duh! I sometimes forget that Ubuntu LTS can be very out of date. Indeed, I have `lmod` 6.6, and `depends_on` was added in 7.6. Replacing `depends_on` with `load` works, but I’ll have to see if maybe I can get a newer `lmod` installed – otherwise it seems to leave some “inactive” modules after unloading.

The other mistake I made with the original

```bash
sudo /opt/intel/oneap/modulefiles-setup.sh --output-dir=/usr/share/lmod/lmod/modulefiles/intel

```

was that I put the module files in a `intel` subdirectory. This does not work! That’s because the files have hardcoded interdependencies, e.g., `intel/compiler/latest` contains a `module load tbb`, which would have to be `module load intel/tbb`.

The output folder of `modulefiles-setup.sh` has to be _directly_ on `MODULEPATH`! It seems like pretty bad namespacing to me (`module load compiler`?.. maybe I have more than one “compiler”…?). Oh well.

Anyway, it’s working now. Thanks!

---

<div class="post-metadata">

**Author:** ![wyphan](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/wyphan/32/632_2.png) [@wyphan](https://fortran-lang.discourse.group/u/wyphan)\
**Post date:** [January 30, 2022, 4:29am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/83 "2022-01-30T04:29:07Z")

</div>

I filed a (now closed) Lmod issue on their GitHub specifically to deal with Intel oneAPI, particularly the Intel Python distribution (double conda prompt), which I still haven’t gotten to fully troubleshoot yet. [You can read it here.](https://github.com/TACC/Lmod/issues/534)

---

<div class="post-metadata">

**Author:** ![awvwgk](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/awvwgk/32/154_2.png) [@awvwgk](https://fortran-lang.discourse.group/u/awvwgk)\
**Post date:** [January 30, 2022, 8:59am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/84 "2022-01-30T08:59:30Z")

</div>

I usually avoid installing Intel Python mainly because it is ~10GB of disk space. For conda environments I found the following module to work nicely to activate and deactivate the base environment

```auto
local prefix = "/home/awvwgk/software/opt/conda"

prepend_path("PATH", pathJoin(prefix, "bin"))

local conda_sh = pathJoin(prefix, "etc/profile.d/conda."..myShellType())
local mamba_sh = pathJoin(prefix, "etc/profile.d/mamba."..myShellType())

cmd = "source " .. conda_sh .. "; source " .. mamba_sh .. "; conda activate base"
execute{cmd=cmd, modeA={"load"}}

if (myShellType() == "csh") then
  -- csh sets these environment variables and an alias for conda
  cmd = "unsetenv CONDA_EXE; unsetenv _CONDA_ROOT; unsetenv _CONDA_EXE; " ..
        "unsetenv CONDA_SHLVL; unalias conda"
  execute{cmd=cmd, modeA={"unload"}}
end
if (myShellType() == "sh") then
  -- bash sets environment variables, shell functions and path to condabin
  if (mode() == "unload") then
    remove_path("PATH", pathJoin(prefix, "condabin"))
  end
  cmd = "conda deactivate; unset CONDA_EXE; unset _CE_CONDA; unset _CE_M; " ..
        "unset -f __conda_activate; unset -f__ conda_reactivate; " .. 
        "unset -f __conda_hashr; unset CONDA_SHLVL; unset _CONDA_EXE; " .. 
        "unset _CONDA_ROOT; unset -f conda"
  execute{cmd=cmd, modeA={"unload"}}
end

```

I’m using it for [miniforge](https://github.com/conda-forge/miniforge) installation with `mamba`, so you might have to remove the `mamba_sh` line.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [February 8, 2022, 9:48am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/85 "2022-02-08T09:48:37Z")

</div>

Following the official [instructions for dnf](https://www.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/yum-dnf-zypper.html), I have successfully installed the Intel Fortran compilers on a Fedora machine in three steps:

```bash
$ tee > /tmp/oneAPI.repo << EOF
[oneAPI]
name=Intel® oneAPI repository
baseurl=https://yum.repos.intel.com/oneapi
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
EOF
$ sudo mv /tmp/oneAPI.repo /etc/yum.repos.d
$ sudo dnf install intel-oneapi-compiler-fortran

```

The total download size is 522 M and the installed size: 1.9 G.

Then you set the environment variables and the compilers are available:

```bash
$ source /opt/intel/oneapi/setvars.sh --force > /dev/null

```

---

<div class="post-metadata">

**Author:** ![wyphan](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/wyphan/32/632_2.png) [@wyphan](https://fortran-lang.discourse.group/u/wyphan)\
**Post date:** [February 9, 2022, 4:04pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/86 "2022-02-09T16:04:28Z")

</div>

Thanks a lot @awvwgk, I finally solved the problem!

Here’s what my Intel Python module looks like right now.

```auto
family( "python" )
whatis( "Intel Python 3.7" )
help([[
Intel Distribution for Python
Bundled with Intel oneAPI 2021.4
]])

local root = "/opt/intel/oneapi"
local ipy = pathJoin( root, "intelpython/latest" )
local conda_sh = pathJoin( ipy, "etc/profile.d/conda." .. myShellType() )
local envver = "2021.4.0"

cmd = "source " .. conda_sh .. "; " .. "conda activate " .. envver
execute{cmd=cmd, modeA={"load"}}

if (myShellType() == "csh") then
  -- csh sets these environment variables and an alias for conda
  cmd = "unsetenv CONDA_EXE; unsetenv _CONDA_ROOT; unsetenv _CONDA_EXE; " ..
        "unsetenv CONDA_SHLVL; unalias conda"
  execute{cmd=cmd, modeA={"unload"}}
end
if (myShellType() == "sh") then
  -- bash sets environment variables, shell functions and path to condabin
  if (mode() == "unload") then
    execute{cmd="for i in $(seq ${CONDA_SHLVL:=0}); do conda deactivate; done;", modeA={"unload"} }
    cmd = "conda deactivate; unset CONDA_EXE; unset _CE_CONDA; unset _CE_M; " ..
          "unset -f __conda_activate; unset -f__ conda_reactivate; " .. 
          "unset -f __conda_hashr; unset CONDA_SHLVL; unset _CONDA_EXE; " .. 
          "unset _CONDA_ROOT; unset -f conda; " ..
          "unset CONDA_PREFIX; unset CONDA_PYTHON_EXE"
    execute{cmd=cmd, modeA={"unload"}}
    remove_path( "PATH", pathJoin( ipy, "bin" ))
    remove_path( "PATH", pathJoin( ipy, "condabin" ))
  end
end

```

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://fortran-lang.discourse.group/u/Ashok)\
**Post date:** [February 20, 2022, 4:58am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/87 "2022-02-20T04:58:02Z")

</div>

Hi,  
I am using a brand new Dell Laptop with windows 11. I was trying to install Intel oneAPI. But the installation screen is vanishing like a flash. Does anyone here found the same problem ? Please help me.

---

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [February 20, 2022, 3:47pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/88 "2022-02-20T15:47:55Z")

</div>

Does this help? [KNOWN ISSUE with Intel oneAPI Toolkits versions 2022.1 and 2022.1.2 and standalone components - Intel Communities](https://community.intel.com/t5/Intel-Fortran-Compiler/KNOWN-ISSUE-with-Intel-oneAPI-Toolkits-versions-2022-1-and-2022/m-p/1361802#M160193)

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://fortran-lang.discourse.group/u/Ashok)\
**Post date:** [February 20, 2022, 4:38pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/89 "2022-02-20T16:38:51Z")

</div>

Thanks a lot. It is working with VS2019.  
I also noticed that we can now download standalone components in oneAPI here

> **[Intel® oneAPI standalone component installation files](https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#fortran)**
>
> Intel® oneAPI standalone component installation files

Is there any difference with the base and HPC toolkits ? I hope no.

---

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [February 20, 2022, 4:47pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/90 "2022-02-20T16:47:04Z")

</div>

The Base and HPC Toolkits have different sets of components - it all depends on what you want. The Toolkits by default install many components, but if you don’t want them all (or most), go for the standalone installers instead. I don’t think you get notified of updates, however, if you use the standalone installers.

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [February 20, 2022, 4:53pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/91 "2022-02-20T16:53:09Z")

</div>

> [@Ashok](#):
>
> … Does anyone here found the same problem ? …

@Ashok, to state the obvious:

1. When using Intel components, you may want to peruse first [**Intel’s forum**](https://community.intel.com/t5/Intel-Fortran-Compiler/bd-p/fortran-compiler), especially the pinned discussions there and particularly the one titled, “Intel® Fortran Compiler Information and Frequently Asked Questions”
2. Inquire also at that forum where you can also get responses from Intel Support Team and other Intel Component users.

---

<div class="post-metadata">

**Author:** ![sihaqqi](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sihaqqi](https://fortran-lang.discourse.group/u/sihaqqi)\
**Post date:** [August 22, 2023, 2:39am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/92 "2023-08-22T02:39:41Z")

</div>

I have installed Windows SDK, MS Visual Studio 2022, Intel one API Base and HPC Toolkits. I have the error rc.exe not found. I have copied rc.exe and rcdll.dll fils from Windows Toolkit in VIsual Studion bin directory according to the answers posted on stackflow for this error. Still I cannot get past this issue. Did you have this issue and how did you resolve it?

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [August 22, 2023, 2:53am UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/93 "2023-08-22T02:53:50Z")

</div>

> [@sihaqqi](#):
>
> … I have the error rc.exe not found. I have copied rc.exe and rcdll.dll fils from Windows Toolkit in VIsual Studion bin directory …

@sihaqqi ,

As you would have noted from the Stackoverflow discussion, the issue with `rc.exe` pertains to something being amiss your Visual Studio installation which is a product from Microsoft. As such, it has nothing to do with Fortran generally. And even Intel Fortran may not need that executable for many of its projects.

Nonetheless, you need to follow up with Microsoft Visual Studio forums to resolve the error with rc.exe.

In the meantime, here are a couple of things to try that may be of indirect help:

1. check whether you followed the steps in this [**link**](https://www.intel.com/content/www/us/en/developer/articles/guide/installing-microsoft-visual-studio-2019-for-use-with-intel-compilers.html) for your Visual Studio installation. It has mainly to do with ensuring the Microsoft C/C++ compiler and also the linker components are installed because Intel Fortran needs them. If not, uninstall everything and start afresh.

2. After completing step 1, if you still encounter the rc.exe not found error, run VSInstaller to configure additional components toward Universal C/C++ and Windows Kits.

---

<div class="post-metadata">

**Author:** ![Shahid](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/shahid/32/3672_2.png) [@Shahid](https://fortran-lang.discourse.group/u/Shahid)\
**Post date:** [September 25, 2023, 2:11pm UTC](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/94 "2023-09-25T14:11:48Z")

</div>

I was updating my software tools last week and Intel’s was one of those. I made the installation guide for **Windows 10**.

> <https://github.com/Shahid718/Installation_guide/tree/main/Intel>
>
> //github.com/Shahid718/Installation\_guide/tree/main/Intel

[Previous page](https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471.md?page=4)
