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

Stop exporting dot from LinearAlgebra.BLAS #31878

Merged
merged 1 commit into from
Apr 30, 2019
Merged

Stop exporting dot from LinearAlgebra.BLAS #31878

merged 1 commit into from
Apr 30, 2019

Conversation

ararslan
Copy link
Member

LinearAlgebra exports the familiar dot function. The BLAS submodule has its own dot function, which it also exports, leading to problems if a user tries to access dot after using both LinearAlgebra and BLAS.

Because this conflict currently exists, this change should be non-breaking, as it's difficult to resolve dot unqualified from BLAS before it's resolved from LinearAlgebra, so pretty much any consumer must already calling BLAS.dot as such.

Fixes JuliaLang/LinearAlgebra.jl#626.

LinearAlgebra exports the familiar `dot` function. The BLAS submodule
has its own `dot` function, which it also exports, leading to problems
if a user tries to access `dot` after `using` both LinearAlgebra and
BLAS.

Because this conflict currently exists, this change should be
non-breaking, as it's difficult to resolve `dot` unqualified from BLAS
before it's resolved from LinearAlgebra, so pretty much any consumer
must already calling `BLAS.dot` as such.

Fixes #31838.
@ararslan ararslan added linear algebra Linear algebra minor change Marginal behavior change acceptable for a minor release labels Apr 29, 2019
@StefanKarpinski
Copy link
Member

@staticfloat: any idea what's up with these failures?

@staticfloat
Copy link
Member

  • win32 tester failure: FileWatching test took 0.51 seconds when it needed to take < 0.5 seconds. I restarted it. (The windows buildbots occasionally see huge latency spikes due to running on OpenStack)
  • mac64 tester failure: Misconfiguration of buildbot due to me moving it to a new physical location; fixed and restarted.
  • freebsd64 build failure: Unknown; it got killed halfway through; I'm restarting it to see if it happens again.

@@ -15,7 +15,6 @@ export
axpy!,
axpby!,
blascopy!,
dot,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe just comment it out, so it's clear that it's no longer exported ?
#dot ?

@mbauman
Copy link
Member

mbauman commented Apr 30, 2019

as it's difficult to resolve dot unqualified from BLAS before it's resolved from LinearAlgebra

Not so difficult, but I agree that most everyone who is using this is probably just calling BLAS.dot.

julia> using LinearAlgebra.BLAS

julia> dot(3, [1.,2,3], 1, [1.,2,3], 1)
14.0 

@ararslan ararslan merged commit 8cc2f12 into master Apr 30, 2019
@ararslan ararslan deleted the aa/blas-dot branch April 30, 2019 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra minor change Marginal behavior change acceptable for a minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Both LinearAlgebra and LinearAlgebra.BLAS export dot
6 participants