Skip to content
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

ILP windows fix #624

Merged
merged 1 commit into from
Sep 27, 2021
Merged

ILP windows fix #624

merged 1 commit into from
Sep 27, 2021

Conversation

ericlars
Copy link
Contributor

Description
CBLAS and LAPACKE layers are not built with 8 byte integers when cmake option BUILD_INDEX64=ON is passed.
The reason is because long's in windows are 4 bytes (MSVC c/c++, intel compilers). This patch uses int64_t and int32_t
to ensure ILP interface is built.

Additionally, this patch adds support ifort's 8 byte integer flag to cmake system for building BLAS and LAPACK.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

long's in windows are 4 bytes (MSVS, intel compilers). Use int64_t and int32_t
to ensure 8 byte integers for ILP interface.

support 8 byte integer flag for intel ifort compiler
@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #624 (d045530) into master (fe5af11) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #624   +/-   ##
=======================================
  Coverage    0.00%    0.00%           
=======================================
  Files        1894     1894           
  Lines      184021   184021           
=======================================
  Misses     184021   184021           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe5af11...d045530. Read the comment docs.

Copy link
Collaborator

@weslleyspereira weslleyspereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ericlars! This issue also appears in the discussion from #461, maybe you want to take a look.

@langou langou merged commit 44ecb6a into Reference-LAPACK:master Sep 27, 2021
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -integer-size 64")
endif()
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weslleyspereira The logic in #617 needs to go here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants