FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Build option AF_COMPUTE_LIBRARY to select CPU backend dependencies by 9prady9 · Pull Request #3138 · arrayfire/arrayfire · GitHub

Repository navigation

Build option AF_COMPUTE_LIBRARY to select CPU backend dependencies - #3138

Merged
9prady9 merged 2 commits into
arrayfire:masterfrom
9prady9:cleanup_linalg_deps_selection
Jun 23, 2021
Merged

9prady9 merged 2 commits into
arrayfire:masterfrom
9prady9:cleanup_linalg_deps_selection

Conversation

9prady9 commented May 20, 2021 •
edited
Loading

Copy link
Copy Markdown
Member

Description

Build option AF_COMPUTE_LIBRARY to select CPU compute dependency

This new cmake option can take the following values

  • Intel-MKL - Intel MKL is used for blas, fft and sparse related routines
  • FFTW/LAPACK/BLAS - OpenBLAS for blas routines; fftw for fft routines; netlib compatible lapack library for lapack routines
  • Intel-MKL is the default value of this option.

We intend to add AMD-AOCL as the third option.

To preserve the behavior provided by the old flags, USE_CPU_MKL & USE_OPENCL_MKL, if provided(command-line/cmake-gui) will take precedence even if AF_COMPUTE_LIBRARY has FFTW/LAPACK/BLAS.

Changes to Users

None

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • [ ] Functions added to unified API
  • [ ] Functions documented

9prady9 added this to the 3.8.1 milestone May 20, 2021
9prady9 requested a review from umar456 May 20, 2021 16:31

9prady9 commented May 20, 2021 •
edited
Loading

Copy link
Copy Markdown
Member Author

I don't expect most of builds to pass since MKL cmake options changed. Addressed this now

9prady9 force-pushed the cleanup_linalg_deps_selection branch 7 times, most recently from 0d7965f to 0c59d06 Compare May 24, 2021 09:08

9prady9 commented May 24, 2021

Copy link
Copy Markdown
Member Author

I will investigate the following new failures (m6000) from this PR. Interesting though, why cuda stuff failed when change has nothing to do with that backend.

The following tests FAILED:
	 48 - test_homography_cuda (Failed)
	 80 - test_orb_cuda (Failed)
	101 - test_gloh_cuda (Failed)
	102 - test_sift_cuda (Failed)

9prady9 force-pushed the cleanup_linalg_deps_selection branch from 1b9fd32 to 126e878 Compare June 21, 2021 09:45
9prady9 added 2 commits June 22, 2021 20:00
This new cmake option can take the following values
- `Intel-MKL` - Intel MKL is used for blas, fft and sparse related routines
- `FFTW/LAPACK/BLAS` - OpenBLAS for blas routines; fftw for fft routines; netlib compatible
  lapack library for lapack routines
- `Intel-MKL` is the default value of this option.

We intend to add AMD-AOCL as the third option.

To preserve the behavior provided by the old flags, USE_CPU_MKL &
USE_OPENCL_MKL, if provided(command-line/cmake-gui) will take
precedence even if `AF_COMPUTE_LIBRARY` has `FFTW/LAPACK/BLAS`.

Add back vcpkg caching mechanism. The work around we tried so far has
increased the build time too much on windows github action

Putting vcpkg under arrayfire source root or build folder is making
vcpkg think it is in manifest mode and any `vcpkg install` commands are
not doing expected standalone dependency installations.

Cannot use af_deprecate calls of USE_*_MKL flags, it cannot handle different type cmake variables
9prady9 force-pushed the cleanup_linalg_deps_selection branch from 126e878 to fde0efb Compare June 22, 2021 14:38
9prady9 merged commit 80d8ef6 into arrayfire:master Jun 23, 2021
9prady9 deleted the cleanup_linalg_deps_selection branch June 23, 2021 03:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL