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

Workaround new artifact"" eagerness that prevents loading on unsupported platforms #473

Merged

Conversation

IanButterworth
Copy link
Contributor

Fixes loading on platforms where artifacts aren't provided. Tested on MacOS. Untested on actual CUDA platforms.

Fixes #469

cc. @staticfloat @giordano

@maleadt
Copy link
Member

maleadt commented Oct 6, 2020

Why not:

julia> lazy_artifact(x) = @artifact_str(x)
lazy_artifact (generic function with 1 method)

julia> x = ()->lazy_artifact("nono")
#5 (generic function with 1 method)

julia> x()
ERROR: Cannot locate artifact 'nono' in '/home/tim/Julia/pkg/CUDA/Artifacts.toml'

That gives the same behavior as before.

@IanButterworth
Copy link
Contributor Author

Yeah, much better, thanks

@maleadt
Copy link
Member

maleadt commented Oct 6, 2020

bors try
Let's squash merge once it passes CI. I'll back-port it to the stable branch, too.

bors bot added a commit that referenced this pull request Oct 6, 2020
@bors
Copy link
Contributor

bors bot commented Oct 6, 2020

try

Build succeeded:

@maleadt maleadt merged commit 26862ae into JuliaGPU:master Oct 7, 2020
maleadt pushed a commit that referenced this pull request Oct 7, 2020
@IanButterworth IanButterworth deleted the ib/reduce_artifact_str_eagerness branch October 7, 2020 11: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.

MacOS without nvidia GPU is trying to download CUDA111 on julia nightly
2 participants