-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
vectorAddMMAP target does not compile due to virtual memory feature set_access_mode #344
Comments
Why couldn't they? What are the types MSVC is seeing? :-( |
There is an ambiguous call to either:
or
in |
Maybe it's an issue with MSVC's support for template-template parameters. What happens if we separate the two function names? i.e. |
Okay, so the actual problem was that
in the declaration of struct
in the declaration of struct Now MSVC can disambiguate between the 2 overloads of |
Are you sure we need value_type? That looks redundant. |
Yeah, pretty sure, because |
…essary for MSVC to properly choose between then in `memory::virtual_::set_access_mode()`
How's this? |
Looks good! I don't know about gcc and clang, but at least with msvc, you don't need to specify |
@Q-Minh : Sure. |
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
…SVC to properly choose between then in `memory::virtual_::set_access_mode()`
The example target
vectorAddMMAP
has the errorcuda-api-wrappers\examples\modified_cuda_samples\vectorAddMMAP\vectorAddMMAP.cpp(163,107): error C2665: 'cuda::memory::virtual_::set_access_mode': none of the 2 overloads could convert all the argument types
when compiling with MSVC using VS2019.The text was updated successfully, but these errors were encountered: