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

Add DYN_ARCH/USE_THREADS/USE_OPENMP features on linux #72

Closed
wants to merge 1 commit into from

Conversation

cassiersg
Copy link

@cassiersg cassiersg commented Apr 28, 2021

These features were supported by the build crate, but not exposed.

I picked a default value for NUM_THREADS when USE_THREADS is set, as I see no way to have this configured through features.

Close #106

@IvanUkhov
Copy link
Member

This probably should be done together with #73.

@IvanUkhov IvanUkhov requested a review from termoshtt July 10, 2021 05:24
@IvanUkhov IvanUkhov removed the request for review from termoshtt October 30, 2021 06:24
@Dirreke
Copy link
Contributor

Dirreke commented Dec 1, 2024

@cassiersg Hi, would you still like to rebase it?

@cassiersg
Copy link
Author

@Dirreke done

@@ -394,9 +394,11 @@ impl Configure {
}
if self.use_thread {
args.push("USE_THREAD=1".into());
args.push("NUM_THREADS=256".into());
Copy link
Contributor

Choose a reason for hiding this comment

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

I’m not certain if it’s necessary . After setting use_thread, will OpenBlas makefile script detect num_thread atomically?

cfg.use_openmp = true;
}
if feature_enabled("dynamic_arch") {
cfg.no_shared = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the variable name should be dynamic_arch. Additionally, please move these codes to line 145.

@cassiersg
Copy link
Author

I'm unfortunately not using openblas anymore, and I barely remember why I did this PR. As for the NUM_THREADS, I'm not sure to remember all the details (this is getting quite old). If I remember correctly, NUM_THREADS is an upper-bound on the number of threads that will be selected at run-time, and the default openblas build script was defaulting to something too low (probably I was compiling on a small machine, then running on a much larger one).

Since I'm not able to help, I'm gonna close this PR and let anybody interested who has more time available finish that work.

@cassiersg cassiersg closed this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

OpenBLAS compilation with DYNAMIC_ARCH flag via openblas-src?
3 participants