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

[BUG] GetNumSupportedArchs GetSupportedArchs compile error #110

Closed
Xseventh opened this issue Jan 3, 2023 · 2 comments
Closed

[BUG] GetNumSupportedArchs GetSupportedArchs compile error #110

Xseventh opened this issue Jan 3, 2023 · 2 comments

Comments

@Xseventh
Copy link

Xseventh commented Jan 3, 2023

template arguments nvrtcProgram is not correct, should remove it.

detail::function_type<nvrtcResult, nvrtcProgram, int*>*

detail::function_type<nvrtcResult, nvrtcProgram, int*>* GetSupportedArchs() {

@Xseventh
Copy link
Author

Xseventh commented Jan 3, 2023

more compile info:
compile with cuda-toolkit 11.0
#define JITIFY_LINK_NVRTC_STATIC 1
#define JITIFY_LINK_CUDA_STATIC 1

get compile error:
jitify2.hpp:2560:62: error: cannot convert 'int*' to '_nvrtcProgram*' in argument passing nvrtc().GetNumSupportedArchs()(&num_supported_archs);

@benbarsdell
Copy link
Member

Fixed by #111. Closing.

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

No branches or pull requests

2 participants