Skip to content

Conversation

@lucbv
Copy link
Contributor

@lucbv lucbv commented Jul 22, 2025

Adding option to request the library and modifying the BLAS logic to skip the Fortran check and correctly define the mangling macro for Accelerate. This last part might be an undue overload of the macro purpose?

@lucbv lucbv requested a review from ndellingwood July 22, 2025 23:27
@lucbv lucbv self-assigned this Jul 22, 2025
@lucbv lucbv marked this pull request as draft July 22, 2025 23:27
@lucbv lucbv force-pushed the BLAS_accelerate_support branch from 687f7fe to 14d9a14 Compare January 5, 2026 18:49
@lucbv lucbv requested a review from brian-kelley January 6, 2026 15:21
@lucbv lucbv marked this pull request as ready for review January 6, 2026 15:21
@brian-kelley
Copy link
Contributor

@lucbv Could you rebase on develop?

@lucbv lucbv force-pushed the BLAS_accelerate_support branch from d9497ad to 6cb435a Compare January 6, 2026 17:27
@lucbv
Copy link
Contributor Author

lucbv commented Jan 6, 2026

Rebased

Copy link
Contributor

@brian-kelley brian-kelley left a comment

Choose a reason for hiding this comment

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

Aside from @JBludau's comment everything looks good to me!

@lucbv lucbv requested review from JBludau and brian-kelley January 7, 2026 17:57
@lucbv
Copy link
Contributor Author

lucbv commented Jan 7, 2026

Okay, I cleaned the CMake logic a bit and as a side effect, the ci build with accelerate is also a bit cleaner now. This should be good to go at this point : )

Copy link

@JBludau JBludau left a comment

Choose a reason for hiding this comment

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

The CMake part looks fine. Not sure if my other comment is relevant

/* */ std::complex<float>* x, const KK_INT* x_inc);
void F77_BLAS_MANGLE(zscal, ZSCAL)(const KK_INT* N, const std::complex<double>* alpha,
/* */ std::complex<double>* x, const KK_INT* x_inc);
} // extern "C"
Copy link

Choose a reason for hiding this comment

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

hmm that looks weird since it is touching the #else branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is fully contained in the "else" and the branch is based on which library is being used since they are written in different languages...

@lucbv lucbv added the AT2-SPECIAL-APPROVAL Mark .github changes as approved. label Jan 7, 2026
lucbv added 12 commits January 8, 2026 16:20
Adding option to request the library and modifying the BLAS logic
to skip the Fortran check and correctly define the mangling macro
for Accelerate. This last part might be an undue overload of the
macro purpose?

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
This will allow us to make sure the logic we are adding it indeed
working correctly and tested with the regular CI actions.

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Actually including the proper header... renaming a bit the github
action to make it clear which one tests Accelerate. Adding CXX flag
to force using the new version of Accelerate and avoid deprecation
warnings.

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Further refactoring would be good in the future to centralize the
various BLAS/CBLAS flavors and have them marshalled at configure
time in a way that let's use less macros for all these different
implementations that end up in the same Kokkos Kernels wrappers.

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Now the compiler and linker flags are specified using our cmake
functions/macros which leads to cleaner code and hopefully leads
to a good example for future reference.

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
lucbv added 2 commits January 8, 2026 16:20
After fixing the CMake logic, the osx-ci build can be cleaned up,
we no longer need to pass the linker flag manually.

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
Some interfaces used very confusing/suspicious names for vectores
and flags. This should look more standard and reasonable now!

Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
@lucbv lucbv force-pushed the BLAS_accelerate_support branch from ee6414b to 22ddff3 Compare January 8, 2026 23:47
@lucbv lucbv added AT2-SPECIAL-APPROVAL Mark .github changes as approved. and removed AT2-SPECIAL-APPROVAL Mark .github changes as approved. labels Jan 8, 2026
@lucbv lucbv requested review from JBludau and brian-kelley January 9, 2026 05:29
@lucbv lucbv merged commit e34f0d5 into kokkos:develop Jan 9, 2026
25 of 26 checks passed
@lucbv lucbv deleted the BLAS_accelerate_support branch January 9, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AT2-SPECIAL-APPROVAL Mark .github changes as approved. enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants