Skip to content

Fix LAPACK definitions #2239

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

Merged
merged 2 commits into from
Jul 16, 2018
Merged

Fix LAPACK definitions #2239

merged 2 commits into from
Jul 16, 2018

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Jul 15, 2018

Sets WITH_LINEAR_ALGEBRA if MKL is found

@umar456 umar456 changed the title Lapack Fix LAPACK definitions Jul 15, 2018
@umar456 umar456 added this to the v3.6.2 milestone Jul 15, 2018
@@ -508,7 +505,8 @@ if(LAPACK_FOUND)
dependency_check(CBLAS_LIBRARIES "CBLAS not found.")
target_include_directories(afopencl
PRIVATE
${CBLAS_INCLUDE_DIR})
${CBLAS_INCLUDE_DIR}
${LAPACK_INCLUDE_DIR})
target_link_libraries(afopencl
PRIVATE
${CBLAS_LIBRARIES}
Copy link
Member

Choose a reason for hiding this comment

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

cpu cmake file adds LAPACK_LIBRARIES. Isn't it needed here as well ?

Copy link
Member

Choose a reason for hiding this comment

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

nvm, I couldn't see the line after CBLAS_LIBRARIES in the diff.

@@ -32,6 +32,8 @@ target_sources(afcommon_interface
${CMAKE_CURRENT_SOURCE_DIR}/err_common.hpp
${CMAKE_CURRENT_SOURCE_DIR}/host_memory.cpp
${CMAKE_CURRENT_SOURCE_DIR}/host_memory.hpp
${CMAKE_CURRENT_SOURCE_DIR}/lapacke.cpp
${CMAKE_CURRENT_SOURCE_DIR}/lapacke.hpp
Copy link
Member

Choose a reason for hiding this comment

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

If LAPACK libs or MKL was not found, then wouldn't this cause an issue ? We can build without linear algebra support earlier, wouldn't this break that ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Those files have ifdefs for apple/OSX. Accelerate framework is always installed on that system. On Linux and windows we don't need those files but the hpp file is included in a couple of places.

@9prady9 9prady9 merged commit facb1f1 into arrayfire:master Jul 16, 2018
@9prady9 9prady9 deleted the lapack branch July 16, 2018 06:27
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.

2 participants