Created
January 15, 2017 23:40
-
-
Save delta2323/e91ed54975bb6fb5fc0876763af0a706 to your computer and use it in GitHub Desktop.
Illegal memory access error in Chainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from chainer import functions as F | |
import cupy | |
y = cupy.random.uniform(0, 1, (10, 5)).astype(cupy.float32) | |
t = cupy.empty((10,), dtype=cupy.int32) | |
p = F.softmax_cross_entropy(y, t) | |
p.data.get() | |
""" | |
%python main.py | |
Traceback (most recent call last): | |
File "main.py", line 8, in <module> | |
p.data.get() | |
File "cupy/core/core.pyx", line 1246, in cupy.core.core.ndarray.get (cupy/core/core.cpp:26488) | |
File "cupy/core/core.pyx", line 1261, in cupy.core.core.ndarray.get (cupy/core/core.cpp:26354) | |
File "cupy/cuda/memory.pyx", line 218, in cupy.cuda.memory.MemoryPointer.copy_to_host (cupy/cuda/memory.cpp:4823) | |
File "cupy/cuda/runtime.pyx", line 241, in cupy.cuda.runtime.memcpy (cupy/cuda/runtime.cpp:4136) | |
File "cupy/cuda/runtime.pyx", line 130, in cupy.cuda.runtime.check_status (cupy/cuda/runtime.cpp:2229) | |
cupy.cuda.runtime.CUDARuntimeError: cudaErrorIllegalAddress: an illegal memory access was encountered | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment