-
-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of GFortran in MKL package #5258
base: dev
Are you sure you want to change the base?
Commits on Sep 17, 2024
-
Add support for Fortran/GFortran with MKL
This patch introduces 3 modifications to the package MKL: - added support of Fortran and GFortran to compile with the MKL libraries - changed download paths following some changes made on the Intel channel of conda (see https://community.intel.com/t5/Intel-Integrated-Performance/Problems-installing-with-conda-HTTP-403-FORBIDDEN/m-p/1631577 for details). - added support of latest version of MKL as of September 2024: 2024.2.1 Note that the support of Intel processors on OS X seems to have been dropped by Intel. No path could be found. Content of the repository can be parsed from the JSON files in each architecture-dependent path: https://software.repos.intel.com/python/conda/<arch>/repodata.json with <arch> being one of the following: - "linux-32" - "linux-64" - "win-32" - "win-64" Minimum example with GFortran: Fortran code ``` program test_mkl use iso_fortran_env, only: real64 integer, parameter :: N = 10 integer :: info integer, dimension(N) :: iwork real(real64), dimension(N,N) :: A, B, C call random_number(A) call random_number(B) call dgemm('T','N',N,N,N,1.0_real64,A,N,B,N,0.0_real64,C,N) call dgetrf(N,N,C,N,iwork,info) end program test_mkl ``` xmake.lua ``` add_rules("mode.debug", "mode.release") add_repositories("local-repo xmake-repo") add_requires("mkl", { configs = { threading = "gomp" } }) target("test_mkl") set_kind("binary") set_policy("check.auto_ignore_flags", false) add_packages("mkl") add_files("test_mkl.f90") add_tests("default") ```
Julien Bloino committedSep 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 6362643 - Browse repository at this point
Copy the full SHA 6362643View commit details -
Configuration menu - View commit details
-
Copy full SHA for c76aa5c - Browse repository at this point
Copy the full SHA c76aa5cView commit details -
Fixed deprecated packages in new repository.
Julien Bloino committedSep 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 532d08d - Browse repository at this point
Copy the full SHA 532d08dView commit details
Commits on Sep 18, 2024
-
This patch restores support of Intel Mac versions
The repository was also available in the new repository. Versions listed in the package and not available in the repository have been removed or replaced with more recent ones from the same year.
Julien Bloino committedSep 18, 2024 Configuration menu - View commit details
-
Copy full SHA for 5c6d269 - Browse repository at this point
Copy the full SHA 5c6d269View commit details -
Fixed URLs to some Windows 32 packages and Linux (32 and 64 bits) packages.
Julien Bloino committedSep 18, 2024 Configuration menu - View commit details
-
Copy full SHA for adb9d01 - Browse repository at this point
Copy the full SHA adb9d01View commit details
Commits on Sep 19, 2024
-
Check on linker instead of compiler to set flags
The tests to set the linker flags are now based on "ld/fcld" instead of the compilers "cc/fc" to avoid problems with toolchains combining different tools.
Julien Bloino committedSep 19, 2024 Configuration menu - View commit details
-
Copy full SHA for 154419a - Browse repository at this point
Copy the full SHA 154419aView commit details
Commits on Sep 20, 2024
-
Fixed code layout to match conventions
* Use of "" instead of '' for strings. * Removal of unnecessary parentheses. * Use of "local" for local variables. * Removed unnecessary comments.
Julien Bloino committedSep 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 1b75df6 - Browse repository at this point
Copy the full SHA 1b75df6View commit details -
Remove misleading reference to runtime config.
Previous patches incorrectly referred to the runtime configuration, which is supposed to be built in and not set in package.
Julien Bloino committedSep 20, 2024 Configuration menu - View commit details
-
Copy full SHA for e1846a6 - Browse repository at this point
Copy the full SHA e1846a6View commit details
Commits on Sep 21, 2024
-
Switch to fcldflags/fcshflags for GFortran
The variables for the linker with GFortran are now set to fcldflags and fcshflags following the latest changes in xmake. Some redundant or awkward constructs were also fixed.
Julien Bloino committedSep 21, 2024 Configuration menu - View commit details
-
Copy full SHA for e55dc93 - Browse repository at this point
Copy the full SHA e55dc93View commit details
Commits on Sep 23, 2024
-
Added Fortran test for the MKL package
Added Fortran test if gfortran available.
Julien Bloino committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 039c45b - Browse repository at this point
Copy the full SHA 039c45bView commit details
Commits on Sep 25, 2024
-
Added check that fcsnippets only run if fcld set
The test on the presence of gfortran may not guarantee the linker is properly set. The new test check that fcld is also set, for now to gfortran since the test on the Fortran compiler only considers this compiler. Note: this way, fcsnippets are only run if --toolchain=gfortran is set.
Julien Bloino committedSep 25, 2024 Configuration menu - View commit details
-
Copy full SHA for 3c77ada - Browse repository at this point
Copy the full SHA 3c77adaView commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 02faa26 - Browse repository at this point
Copy the full SHA 02faa26View commit details