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

fix cuda_array_copy runtime error on Windows #444

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

TomonobuTsujikawa
Copy link
Contributor

This PR tends to fix the following problem on Windows environment:

RuntimeError: not_implemented error in nbla::cuda_array_copy_wrapper<Ta, Tb, std::enable_if<std::is_same<Ta, long long>::value, void>::type>::copy
C:/ci/builds/Jxmz4DHi/0/nnabla/builders/all/nnabla-ext-cuda/include\nbla/cuda/array/cuda_array.cuh:95
`long long` is disabled in `cuda_array_copy`.

When the following code is performed:

import nnabla as nn
import nnabla.functions as F
from nnabla.ext_utils import get_extension_context
ctx = get_extension_context('cudnn', type_config='float')
nn.set_default_context(ctx)
nn.set_auto_forward(True)
x = nn.Variable((1, 100,))
x.d = range(100)
idx = F.max(x, axis=1,  only_index=True)
idx += 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-bugfix Auto-release; Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants