Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Improve openblas CMake logic, add generic blas option. #15694

Closed
wants to merge 1 commit into from

Conversation

larroy
Copy link
Contributor

@larroy larroy commented Jul 30, 2019

Description

Improve CMake blas logic making it consistent and add option to link with libblas. (Netlib)

@larroy
Copy link
Contributor Author

larroy commented Jul 30, 2019

Needs dmlc/mshadow#376

@larroy
Copy link
Contributor Author

larroy commented Jul 30, 2019

@TaoLv @pengzhao-intel

@larroy
Copy link
Contributor Author

larroy commented Jul 30, 2019

@marcoabreu add [pr-awaiting-review]

@larroy
Copy link
Contributor Author

larroy commented Jul 30, 2019

@mxnet-label-bot add [pr-awaiting-review, build]

Copy link
Contributor

@ChaiBapchya ChaiBapchya left a comment

Choose a reason for hiding this comment

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

Changes LGTM!

I had another PR which had just 2 lines. Do you think adding this to your PR helps? -
https://github.com/apache/incubator-mxnet/blob/ce2b147f07d128dd919396c83d644a23fc32c61b/cmake/cmake_options.yml#L44

In that case I will close my earlier PR #15739 since it is subset of this.

3rdparty/mshadow/cmake/mshadow.cmake Show resolved Hide resolved
@larroy
Copy link
Contributor Author

larroy commented Aug 6, 2019

@ChaiBapchya sure.

@larroy
Copy link
Contributor Author

larroy commented Aug 6, 2019

#15739

@ChaiBapchya
Copy link
Contributor

ChaiBapchya commented Aug 14, 2019

Reminder retrigger!

@@ -1,34 +1,40 @@
set(mshadow_LINKER_LIBS "")

set(BLAS "Open" CACHE STRING "Selected BLAS library")
set_property(CACHE BLAS PROPERTY STRINGS "Atlas;Open;MKL")
set(BLAS "openblas" CACHE STRING "Selected BLAS library")
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks backwards compatibility

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 makes it consistent with Makefile, that's the whole point of the PR. Please reconsider your veto.

Copy link
Contributor

Choose a reason for hiding this comment

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

None the less, it's not Backwards compatible since it changes the input arguments, right?

Copy link
Contributor Author

@larroy larroy Sep 10, 2019

Choose a reason for hiding this comment

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

Yes, you are right. The impact should be very small. Any suggestions? can we move forward?

@szha
Copy link
Member

szha commented Sep 8, 2019

What does a generic blas library mean? At the time of linking, it would still have to be in one of the existing blas implementations. Would it be more beneficial to capture the detected blas instead?
Nevermind. I was thinking only in terms of static linking...

@larroy
Copy link
Contributor Author

larroy commented Sep 8, 2019

There's openblas, and libblas from netlib. Two different libraries.

@apeforest
Copy link
Contributor

I suggest we break this PR into two:

  1. improve the CMake blas logic making it consistent
  2. add a generic blas option.

For 2), is there an issue filed with current approach? is any customer requesting this change?

@larroy
Copy link
Contributor Author

larroy commented Feb 24, 2020

Thanks for the reviews. Unfortunately I don't have time to keep pushing this PR.

@larroy larroy closed this Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants