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

Windows x64-to-x32 cross-build fails to match the stream_launched_host_function_adapter template #296

Closed
eyalroz opened this issue Jan 18, 2022 · 1 comment

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jan 18, 2022

Splitting off a second issue mentioned in #295:

When cross-compiling on windows x6_64 for a x86 (32-bit) platform, MSVC shows the following error:

no instance of function template `cuda::stream_t::stream_launched_host_function_adapter matches the required type

150006177-329ae9a8-33a0-4a21-a5b8-5f2112671837

I suspect this might have something to do with the following snippet in cuda_runtime_api.h:

#ifdef _WIN32
#define CUDART_CB __stdcall
#else
#define CUDART_CB
#endif

so perhaps I need to prefix the static method definition with CUDART_CB.

@eyalroz eyalroz added the bug label Jan 18, 2022
eyalroz added a commit that referenced this issue Jan 18, 2022
@eyalroz
Copy link
Owner Author

eyalroz commented Jan 18, 2022

Fixed by the last commit.

@eyalroz eyalroz closed this as completed Jan 18, 2022
@eyalroz eyalroz reopened this Jan 18, 2022
eyalroz added a commit that referenced this issue Feb 7, 2022
@eyalroz eyalroz closed this as completed Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant