Skip to content
Discussion options

You must be logged in to vote

For starters, I think your run_command should probably be a custom_target. Note that you can specify a custom_target output as a link_with: value, specifically to handle cases like this where libraries are created using specialized rules that are too complicated to handle with library().

  • add a flag -dc when generating a object file fft_kernels.o (only needed for this one object, not needed for other objects in the source code)

Is it harmful to specify it for all of them? Meson doesn't let you define attributes on individual object files, but you could define it in an object library such as static_library('fft_kernels_stlib', 'fft_kernels.c', cuda_args: [...], build_by_default: false).…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@telegraphic
Comment options

Answer selected by telegraphic
Comment options

You must be logged in to vote
1 reply
@eli-schwartz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants