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 recipe for CLFFT #5613

Merged
merged 8 commits into from
Oct 7, 2022
Merged

Add recipe for CLFFT #5613

merged 8 commits into from
Oct 7, 2022

Conversation

juliohm
Copy link
Contributor

@juliohm juliohm commented Oct 1, 2022

This is the last PR in a series of PRs to revive OpenCL + CLFFT binaries for OpenCL.jl and CLFFT.jl respectively.

Appreciate if you can review @giordano. In particular, could you please double check which dependency is a BuildDependency and which is an actual Dependency? That is not 100% clear for me.

@juliohm
Copy link
Contributor Author

juliohm commented Oct 1, 2022

It seems some OpenCL environment variables are not found. What is a good method to define these variables and try to expand the list of supported platforms?

Copy link
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

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

This package seems to have a pretty rubbish build system (forcing -m64 for all targets.....) and it's failing to compile for macOS with what look like genuine error in the source code. I wouldn't even know where to start from.

It seems some OpenCL environment variables are not found. What is a good method to define these variables and try to expand the list of supported platforms?

What are you referring to in particular?

C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
@juliohm
Copy link
Contributor Author

juliohm commented Oct 2, 2022

This package seems to have a pretty rubbish build system (forcing -m64 for all targets.....) and it's failing to compile for macOS with what look like genuine error in the source code. I wouldn't even know where to start from.

I will try to contact the clFFT maintainers to see if they can help with this. I am impressed how these CL libraries have super rough build systems. I thought more people used them.

What are you referring to in particular?

I remember seeing some warnings in the build saying that some OPENCL_VERSION variables were not set, but I will investigate it more carefully.

@giordano
Copy link
Member

giordano commented Oct 2, 2022

I thought more people used them.

Perhaps not many do cross-compilation.

C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
@juliohm
Copy link
Contributor Author

juliohm commented Oct 5, 2022

@giordano another one ready for review. I hope the number of issues is reduced compared to previous contributions.

C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
C/CLFFT/build_tarballs.jl Outdated Show resolved Hide resolved
@juliohm
Copy link
Contributor Author

juliohm commented Oct 6, 2022

Another issue with this particular recipe that I would like to ask here is that I am seeing some warnings from the Auditor:

┌ Warning: Minimum instruction set detected for lib64/libclFFT.so.2.12.2 is avx2, not x86_64 as desired.
└ @ BinaryBuilder.Auditor ~/.julia/packages/BinaryBuilder/wohhx/src/Auditor.jl:311
┌ Warning: Minimum instruction set detected for lib64/libclFFT.so.2.12.2 is avx2, not x86_64 as desired.
└ @ BinaryBuilder.Auditor ~/.julia/packages/BinaryBuilder/wohhx/src/Auditor.jl:311
┌ Warning: Minimum instruction set detected for lib64/libclFFT.so.2.12.2 is avx2, not x86_64 as desired.
└ @ BinaryBuilder.Auditor ~/.julia/packages/BinaryBuilder/wohhx/src/Auditor.jl:311
┌ Warning: Minimum instruction set detected for lib64/libclFFT.so.2.12.2 is avx2, not x86_64 as desired.
└ @ BinaryBuilder.Auditor ~/.julia/packages/BinaryBuilder/wohhx/src/Auditor.jl:311

Do you think that this super problematic? Also, it would be great if BinaryBuilder.jl could print the current platform being built so that we know where these warnings are coming from. A message like "Info: Building for x86_64-linux-gnu..."

@juliohm
Copy link
Contributor Author

juliohm commented Oct 7, 2022

@giordano what about the warnings above? Do you have any advise?

@giordano
Copy link
Member

giordano commented Oct 7, 2022

That's ok(-ish)

@giordano giordano merged commit 11ca09f into JuliaPackaging:master Oct 7, 2022
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.

2 participants