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 variant enable-cuda-dlopen to configure libfabric with the corresponding parameter #16

Closed
wants to merge 1 commit into from

Conversation

thomas-bouvier
Copy link

I'd like to build libfabric with the --enable-cuda-dlopen flag. This would allow to remove the requirement of CUDA availability at build time, which I do not have.

@github-actions
Copy link

github-actions bot commented Jan 2, 2023

CLA Assistant Lite bot: Thank you for your contribution! Before this PR can be accepted, we require that you read and agree to the Mochi Contributor License Agreement. You can digitally sign the CLA by posting a comment on this Pull Request in the format shown below. This agreement will apply to this PR as well as all future Mochi contributions.

For more information, or instructions on how to sign an institution-level CLA, please see the Mochi Contributing web page.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

Copy link
Member

@carns carns left a comment

Choose a reason for hiding this comment

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

Thank you @thomas-bouvier ! I put a couple of minor comments/suggestions.

@@ -34,6 +34,8 @@ class Libfabric(BuiltinLibfabric):
variant('cuda', default=False, description='Configure with cuda support')
depends_on('cuda', when='+cuda')

variant('enable-cuda-dlopen', default=False, description='Use dlopen to open cuda library during runtime and load symbol from the library')
Copy link
Member

Choose a reason for hiding this comment

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

The spack variant should probably be called cuda-dlopen (or maybe cuda_dlopen? I don't know if dashes are Ok in spack variant names or not). At any rate I think they usually omit the "enable" part when mapping variants to build arguments.

@@ -74,6 +76,9 @@ def configure_args(self):
if '+cuda' in spec:
config_args.append('--with-cuda={0}'.format(self.spec['cuda'].prefix))

if '+enable-cuda-dlopen' in spec:
Copy link
Member

Choose a reason for hiding this comment

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

are the cuda and enable-cuda-dlopen variants independent, or do you need to have the former to then also use the latter? Just checking if we need some logic to enforce that or not.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants