Skip to content

[SPARK-2358][MLLIB] Add an option to include native BLAS/LAPACK loader in the build - #1295

Closed
mengxr wants to merge 1 commit into
apache:masterfrom
mengxr:netlib-lgpl
Closed

mengxr wants to merge 1 commit into
apache:masterfrom
mengxr:netlib-lgpl

Conversation

@mengxr

@mengxr mengxr commented Jul 4, 2014

Copy link
Copy Markdown
Contributor

It would be easy for users to include the netlib-java jniloader in the spark jar, which is LGPL-licensed. We can follow the same approach as ganglia support in Spark, which could be enabled by turning on "-Pganglia-lgpl" at build time. We can use "-Pnetlib-lgpl" flag for this.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. All automated tests passed.

@AmplabJenkins

Copy link
Copy Markdown

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16325/

@mengxr

mengxr commented Jul 10, 2014

Copy link
Copy Markdown
Contributor Author

Updated PR to use profile only. User needs to enable -Pnetlib-lgpl at build time to include the jni loaders.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished.

@AmplabJenkins

Copy link
Copy Markdown

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16515/

@mengxr

mengxr commented Jul 10, 2014

Copy link
Copy Markdown
Contributor Author

Jenkins, retest this please.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@SparkQA

SparkQA commented Jul 10, 2014

Copy link
Copy Markdown

QA tests have started for PR 1295. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16519/consoleFull

@SparkQA

SparkQA commented Jul 10, 2014

Copy link
Copy Markdown

QA results for PR 1295:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16519/consoleFull

@AmplabJenkins

Copy link
Copy Markdown

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16519/

@SparkQA

SparkQA commented Jul 11, 2014

Copy link
Copy Markdown

QA tests have started for PR 1295. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16540/consoleFull

@SparkQA

SparkQA commented Jul 11, 2014

Copy link
Copy Markdown

QA results for PR 1295:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16540/consoleFull

@rxin

rxin commented Jul 11, 2014

Copy link
Copy Markdown
Contributor

Merging in master. Thanks!

@asfgit asfgit closed this in 2f59ce7 Jul 11, 2014
gzm55 pushed a commit to MediaV/spark that referenced this pull request Jul 18, 2014
…r in the build

It would be easy for users to include the netlib-java jniloader in the spark jar, which is LGPL-licensed. We can follow the same approach as ganglia support in Spark, which could be enabled by turning on "-Pganglia-lgpl" at build time. We can use "-Pnetlib-lgpl" flag for this.

Author: Xiangrui Meng <meng@databricks.com>

Closes apache#1295 from mengxr/netlib-lgpl and squashes the following commits:

aebf001 [Xiangrui Meng] add a profile to optionally include native BLAS/LAPACK loader in mllib
@JoshRosen

Copy link
Copy Markdown
Contributor

It would be great to mention this option in the MLlib documentation.

xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…r in the build

It would be easy for users to include the netlib-java jniloader in the spark jar, which is LGPL-licensed. We can follow the same approach as ganglia support in Spark, which could be enabled by turning on "-Pganglia-lgpl" at build time. We can use "-Pnetlib-lgpl" flag for this.

Author: Xiangrui Meng <meng@databricks.com>

Closes apache#1295 from mengxr/netlib-lgpl and squashes the following commits:

aebf001 [Xiangrui Meng] add a profile to optionally include native BLAS/LAPACK loader in mllib
wangyum pushed a commit that referenced this pull request May 26, 2023
)

* [CARMEL-6633] Reduce Skew Join Split Size Considering Expand Node

* Add UT
github-actions Bot pushed a commit to MaxGekk/spark that referenced this pull request Nov 2, 2026
…pache#1295)

### What changes were proposed in this pull request?

Adds row 548 to the milestone 8 plan (`sql/varka/plans/m8/PLAN.md`): two new rules for `dev/varka_lint.py`.

- **`global-fault`:** a `static` field that is not `final`, in a class whose name holds `Fault`, under `sql/catalyst/src/main`. A test fault read during emission must belong to the compile that plants it. Otherwise a planted fault leaks into other compiles running in the same JVM, and a faulty kernel class can be cached under a clean shape key. The 128-bit decimal pair's review found its signed low-word fault doing exactly that and moved it into the emit options; `VarkaFloatingFault`'s `private static volatile` field on master has the same hazard.
- **`arch-list`:** two or more of the literals `"amd64"`, `"x86_64"` and `"aarch64"` on one line outside `VarkaHostIsa`. The two-lane decline's review (apache#1262) found a test helper repeating `VarkaHostIsa`'s list of x86 `os.arch` names, which drifts from the compiler's host fact as soon as either list changes. A single literal, as a test's constructed host reading uses, still passes.

The row also moves `VarkaFloatingFault` into the emit options, so master passes its own rule.

**Done when** both rules report their planted cases in `--selftest`, `VarkaFloatingFault` holds no mutable static and its planted fault gets a shape key of its own, and the lint passes on master.

Also in this pull request:

- **Row 549**, small: every baseline benchmark section declared to fuse whole is checked at run time to run as a kernel. A Varka node can hand a batch back to the row path, and the existing check knows projections only, so the filter baselines (the decimal one among them, apache#1258) time a kernel nobody checked. The day-time baseline's `requireKernel` moves into `VarkaSqlBenchmarkBase` for every baseline.
- **Row 550**, medium: kernels driven at the int lane or at a narrow lane load and store their epilogue with masked `BYTE` and `SHORT` operations, which C2 does not lower without AVX512BW, so on CI's AVX2 runners most batches run the Vector API's Java loop once. apache#1291 fixed this for long-lane kernels only. The width audit never saw it because its probe's 256 rows divide every lane count, so the row first makes the audit probe a row count no lane count divides.
- **Scope item 129** in `m9/SCOPE.md`: build each pull request merged with current master before it merges. It is harness work outside milestone 8's type goals.
- **`sql/varka/AGENTS.md`**: before pushing a change to emitted code, run the preferred-width width audit under `-XX:UseAVX=2`, since the laptop is AVX-512 and CI's runners are AVX2.

### Why are the changes needed?

Both slips reached review more than once in two days. The fault one can make a test run give wrong answers depending on what else the JVM is compiling, and a line check catches both at commit time instead of in a review round.

### Does this PR introduce _any_ user-facing change?

No. Plan documents and contributor notes only.

### How was this patch tested?

The plan lint and the quote check pass on this head. The PR Build runs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 5.5)
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.

5 participants