Jcuda 0.6.0 - got an EXCEPTION_ACCESS_VIOLATION

Great to have jcuda-0.6.0. On running a simple example I got the following exception. Any idea?


E:>javac -cp “.;jcuda-0.6.0.jar;jcublas-0.6.0.jar” JCublas2Sample.java

E:>java -cp “.;jcuda-0.6.0.jar;jcublas-0.6.0.jar” JCublas2Sample
Creating input data…
Performing Sgemm with Java…
Performing Sgemm with JCublas…

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff074e82fe, pid=6896, t
id=17228
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)

# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode windows-amd64
compressed oops)
# Problematic frame:
# C  [cublas64_60.dll+0xa82fe]
#
# Failed to write core dump. Minidumps are not enabled by default on client vers
ions of Windows
#
# An error report file with more information is saved as:
# E:\hs_err_pid6896.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

------------------------------------------------

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff074e82fe, pid=6896, tid=17228
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [cublas64_60.dll+0xa82fe]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00000000005dd800):  JavaThread "main" [_thread_in_native, id=17228, stack(0x0000000001e60000,0x0000000001f60000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000200039

Registers:
RAX=0x0000000000000000, RBX=0x0000000715d66638, RCX=0x0000000000200021, RDX=0x0000000000000000
RSP=0x0000000001f5f050, RBP=0x0000000000200021, RSI=0x0000000000000000, RDI=0x00000000005dd9e0
R8 =0x0000000000000000, R9 =0x00000000000003e8, R10=0x00000000000003e8, R11=0x0000000000200021
R12=0x0000000001f5f298, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x0000000001f5f2a0
RIP=0x00007fff074e82fe, EFLAGS=0x0000000000010206

Top of Stack: (sp=0x0000000001f5f050)
0x0000000001f5f050:   00000000005dd9e0 0000000067059c05
0x0000000001f5f060:   0000000000000000 0000000715d66640
0x0000000001f5f070:   00000000005dd9e0 00007fff264dfec7
0x0000000001f5f080:   00000000005dd800 0000000000000000
0x0000000001f5f090:   0000000001f5f2a0 00000000005dd800
0x0000000001f5f0a0:   00000000005dd9e0 00007fff264deb51
0x0000000001f5f0b0:   0000000000486100 00007fff264f15a0
0x0000000001f5f0c0:   0000000000000006 00000000676b9230
0x0000000001f5f0d0:   00007fff074e82ea 00007fff264d2922
0x0000000001f5f0e0:   0000000715d66638 0000000000000000
0x0000000001f5f0f0:   0000000001f5f2c8 0000000000000000
0x0000000001f5f100:   00000000000003e8 00000000000003e8
0x0000000001f5f110:   0000000715d665c8 0000000000000000
0x0000000001f5f120:   00000000000003e8 0000000000000000
0x0000000001f5f130:   00000000000003e8 0000000715d66638
0x0000000001f5f140:   0000000000000000 00000000000003e8 

Instructions: (pc=0x00007fff074e82fe)
0x00007fff074e82de:   cc cc b8 88 00 00 00 e8 e6 01 10 00 48 2b e0 45
0x00007fff074e82ee:   8b d1 8b c2 4c 8b d9 48 85 c9 0f 84 fe 01 00 00
0x00007fff074e82fe:   83 79 18 00 0f 84 f4 01 00 00 48 89 9c 24 90 00
0x00007fff074e830e:   00 00 48 89 b4 24 a0 00 00 00 ba 01 00 00 00 33 


Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000715d66638 is an oop

[error occurred during error reporting (printing register info), id 0xc0000005]

Stack: [0x0000000001e60000,0x0000000001f60000],  sp=0x0000000001f5f050,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [cublas64_60.dll+0xa82fe]
C  [JCublas2-windows-x86_64.dll+0x12922]
C  0x00000000020751ae

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  jcuda.jcublas.JCublas2.cublasSgemmNative(Ljcuda/jcublas/cublasHandle;IIIIILjcuda/Pointer;Ljcuda/Pointer;ILjcuda/Pointer;ILjcuda/Pointer;Ljcuda/Pointer;I)I+0
j  jcuda.jcublas.JCublas2.cublasSgemm(Ljcuda/jcublas/cublasHandle;IIIIILjcuda/Pointer;Ljcuda/Pointer;ILjcuda/Pointer;ILjcuda/Pointer;Ljcuda/Pointer;I)I+24
j  JCublas2Sample.sgemmJCublas(IF[F[FF[F)V+171
j  JCublas2Sample.testSgemm(I)V+83
j  JCublas2Sample.main([Ljava/lang/String;)V+3
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00000000270af800 JavaThread "Service Thread" daemon [_thread_blocked, id=8260, stack(0x00000000279f0000,0x0000000027af0000)]
  0x000000002701d800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=2556, stack(0x00000000278f0000,0x00000000279f0000)]
  0x000000002701a800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=22440, stack(0x00000000277f0000,0x00000000278f0000)]
  0x000000002702f000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7248, stack(0x00000000276f0000,0x00000000277f0000)]
  0x0000000027023800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=25184, stack(0x00000000275f0000,0x00000000276f0000)]
  0x0000000027021000 JavaThread "Attach Listener" daemon [_thread_blocked, id=8144, stack(0x00000000274f0000,0x00000000275f0000)]
  0x0000000027020000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6504, stack(0x00000000273f0000,0x00000000274f0000)]
  0x0000000002058800 JavaThread "Finalizer" daemon [_thread_blocked, id=18448, stack(0x0000000026ef0000,0x0000000026ff0000)]
  0x000000002500c000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1300, stack(0x0000000026df0000,0x0000000026ef0000)]
=>0x00000000005dd800 JavaThread "main" [_thread_in_native, id=17228, stack(0x0000000001e60000,0x0000000001f60000)]

Other Threads:
  0x0000000025008000 VMThread [stack: 0x0000000026cf0000,0x0000000026df0000] [id=1756]
  0x00000000270bb800 WatcherThread [stack: 0x0000000027af0000,0x0000000027bf0000] [id=1000]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 PSYoungGen      total 1024K, used 910K [0x0000000715d00000, 0x0000000715e80000, 0x00000007c0000000)
  eden space 512K, 80% used [0x0000000715d00000,0x0000000715d67840,0x0000000715d80000)
  from space 512K, 96% used [0x0000000715e00000,0x0000000715e7c010,0x0000000715e80000)
  to   space 512K, 0% used [0x0000000715d80000,0x0000000715d80000,0x0000000715e00000)
 ParOldGen       total 522752K, used 15799K [0x00000005c1600000, 0x00000005e1480000, 0x0000000715d00000)
  object space 522752K, 3% used [0x00000005c1600000,0x00000005c256dfa8,0x00000005e1480000)
 Metaspace       used 3183K, capacity 4788K, committed 5120K, reserved 1056768K
  class space    used 330K, capacity 424K, committed 512K, reserved 1048576K

Card table byte_map: [0x0000000011420000,0x0000000012420000] byte_map_base: 0x000000000e615000

Marking Bits: (ParMarkBitMap*) 0x00000000676c13b0
 Begin Bits: [0x00000000136d0000, 0x000000001b678000)
 End Bits:   [0x000000001b678000, 0x0000000023620000)

Polling page: 0x00000000005b0000

CodeCache: size=245760Kb used=1291Kb max_used=1291Kb free=244468Kb
 bounds [0x0000000002060000, 0x00000000022d0000, 0x0000000011060000]
 total_blobs=392 nmethods=97 adapters=209
 compilation: enabled

Compilation events (10 events):
Event: 2.499 Thread 0x000000002701d800   92   !   3       sun.misc.URLClassPath$JarLoader::getResource (85 bytes)
Event: 2.500 Thread 0x000000002701d800 nmethod 92 0x00000000021a06d0 code [0x00000000021a0960, 0x00000000021a1888]
Event: 2.500 Thread 0x000000002701d800   93       1       java.util.zip.ZipFile::access$000 (5 bytes)
Event: 2.500 Thread 0x000000002701d800 nmethod 93 0x00000000021a21d0 code [0x00000000021a2320, 0x00000000021a2410]
Event: 2.501 Thread 0x000000002701d800   95       1       sun.util.calendar.CalendarDate::getYear (5 bytes)
Event: 2.501 Thread 0x000000002701d800 nmethod 95 0x00000000021a2810 code [0x00000000021a2960, 0x00000000021a2a70]
Event: 2.501 Thread 0x000000002701d800   97       3       java.lang.String::substring (79 bytes)
Event: 2.501 Thread 0x000000002701d800 nmethod 97 0x00000000021a2ad0 code [0x00000000021a2c80, 0x00000000021a3118]
Event: 2.501 Thread 0x000000002701d800   96       1       sun.util.calendar.CalendarDate::getZone (5 bytes)
Event: 2.501 Thread 0x000000002701d800 nmethod 96 0x00000000021a3350 code [0x00000000021a34a0, 0x00000000021a35b0]

GC Heap History (4 events):
Event: 2.447 GC heap before
{Heap before GC invocations=1 (full 0):
 PSYoungGen      total 1024K, used 511K [0x0000000715d00000, 0x0000000715e80000, 0x00000007c0000000)
  eden space 512K, 99% used [0x0000000715d00000,0x0000000715d7ff28,0x0000000715d80000)
  from space 512K, 0% used [0x0000000715e00000,0x0000000715e00000,0x0000000715e80000)
  to   space 512K, 0% used [0x0000000715d80000,0x0000000715d80000,0x0000000715e00000)
 ParOldGen       total 522752K, used 15625K [0x00000005c1600000, 0x00000005e1480000, 0x0000000715d00000)
  object space 522752K, 2% used [0x00000005c1600000,0x00000005c2542440,0x00000005e1480000)
 Metaspace       used 2638K, capacity 4490K, committed 4864K, reserved 1056768K
  class space    used 283K, capacity 386K, committed 512K, reserved 1048576K
Event: 2.448 GC heap after
Heap after GC invocations=1 (full 0):
 PSYoungGen      total 1024K, used 496K [0x0000000715d00000, 0x0000000715e80000, 0x00000007c0000000)
  eden space 512K, 0% used [0x0000000715d00000,0x0000000715d00000,0x0000000715d80000)
  from space 512K, 96% used [0x0000000715d80000,0x0000000715dfc010,0x0000000715e00000)
  to   space 512K, 0% used [0x0000000715e00000,0x0000000715e00000,0x0000000715e80000)
 ParOldGen       total 522752K, used 15657K [0x00000005c1600000, 0x00000005e1480000, 0x0000000715d00000)
  object space 522752K, 2% used [0x00000005c1600000,0x00000005c254a440,0x00000005e1480000)
 Metaspace       used 2638K, capacity 4490K, committed 4864K, reserved 1056768K
  class space    used 283K, capacity 386K, committed 512K, reserved 1048576K
}
Event: 2.483 GC heap before
{Heap before GC invocations=2 (full 0):
 PSYoungGen      total 1024K, used 1008K [0x0000000715d00000, 0x0000000715e80000, 0x00000007c0000000)
  eden space 512K, 100% used [0x0000000715d00000,0x0000000715d80000,0x0000000715d80000)
  from space 512K, 96% used [0x0000000715d80000,0x0000000715dfc010,0x0000000715e00000)
  to   space 512K, 0% used [0x0000000715e00000,0x0000000715e00000,0x0000000715e80000)
 ParOldGen       total 522752K, used 15657K [0x00000005c1600000, 0x00000005e1480000, 0x0000000715d00000)
  object space 522752K, 2% used [0x00000005c1600000,0x00000005c254a440,0x00000005e1480000)
 Metaspace       used 2984K, capacity 4626K, committed 4864K, reserved 1056768K
  class space    used 315K, capacity 390K, committed 512K, reserved 1048576K
Event: 2.484 GC heap after
Heap after GC invocations=2 (full 0):
 PSYoungGen      total 1024K, used 496K [0x0000000715d00000, 0x0000000715e80000, 0x00000007c0000000)
  eden space 512K, 0% used [0x0000000715d00000,0x0000000715d00000,0x0000000715d80000)
  from space 512K, 96% used [0x0000000715e00000,0x0000000715e7c010,0x0000000715e80000)
  to   space 512K, 0% used [0x0000000715d80000,0x0000000715d80000,0x0000000715e00000)
 ParOldGen       total 522752K, used 15799K [0x00000005c1600000, 0x00000005e1480000, 0x0000000715d00000)
  object space 522752K, 3% used [0x00000005c1600000,0x00000005c256dfa8,0x00000005e1480000)
 Metaspace       used 2984K, capacity 4626K, committed 4864K, reserved 1056768K
  class space    used 315K, capacity 390K, committed 512K, reserved 1048576K
}

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 2.497 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d4a2c0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.498 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d4d5d8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.498 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d4fcc8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.498 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d521f8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.498 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d550b0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.499 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d57fc8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.499 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d5a400) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.499 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d5c818) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.499 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d5ff10) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]
Event: 2.501 Thread 0x00000000005dd800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000715d63200) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u5\2488\hotspot\src\share\vm\prims\jvm.cpp, line 1248]

Events (10 events):
Event: 2.499 loading class jcuda/runtime/cudaIpcMemHandle
Event: 2.499 loading class jcuda/runtime/cudaIpcMemHandle done
Event: 2.499 loading class jcuda/runtime/cudaResourceDesc
Event: 2.499 loading class jcuda/runtime/cudaResourceDesc done
Event: 2.499 loading class jcuda/runtime/cudaResourceViewDesc
Event: 2.499 loading class jcuda/runtime/cudaResourceViewDesc done
Event: 2.501 loading class jcuda/runtime/cudaTextureDesc
Event: 2.501 loading class jcuda/runtime/cudaTextureDesc done
Event: 2.509 loading class java/nio/HeapFloatBuffer
Event: 2.509 loading class java/nio/HeapFloatBuffer done


Dynamic libraries:
0x00007ff7d07f0000 - 0x00007ff7d0824000 	E:\work2\bin\jdk1.8.0_05\bin\java.exe
0x00007fff49320000 - 0x00007fff494ca000 	C:\Windows\SYSTEM32
tdll.dll
0x00007fff46cb0000 - 0x00007fff46dea000 	C:\Windows\system32\KERNEL32.DLL
0x00007fff46760000 - 0x00007fff4686f000 	C:\Windows\system32\KERNELBASE.dll
0x00007fff451c0000 - 0x00007fff45248000 	C:\Windows\system32\apphelp.dll
0x00007fff28250000 - 0x00007fff2829f000 	C:\Windows\AppPatch\AppPatch64\AcGenral.DLL
0x00007fff47500000 - 0x00007fff475a7000 	C:\Windows\system32\msvcrt.dll
0x00007fff46540000 - 0x00007fff4656b000 	C:\Windows\SYSTEM32\SspiCli.dll
0x00007fff47ad0000 - 0x00007fff47b21000 	C:\Windows\system32\SHLWAPI.dll
0x00007fff475b0000 - 0x00007fff47721000 	C:\Windows\system32\USER32.dll
0x00007fff49050000 - 0x00007fff491c8000 	C:\Windows\system32\ole32.dll
0x00007fff47b70000 - 0x00007fff48f86000 	C:\Windows\system32\SHELL32.dll
0x00007fff45f50000 - 0x00007fff45f6e000 	C:\Windows\SYSTEM32\USERENV.dll
0x00007fff46c00000 - 0x00007fff46ca5000 	C:\Windows\system32\ADVAPI32.dll
0x00007fff33660000 - 0x00007fff3367b000 	C:\Windows\SYSTEM32\MPR.dll
0x00007fff47170000 - 0x00007fff472a6000 	C:\Windows\system32\RPCRT4.dll
0x00007fff46ba0000 - 0x00007fff46bf7000 	C:\Windows\SYSTEM32\sechost.dll
0x00007fff46f90000 - 0x00007fff47166000 	C:\Windows\SYSTEM32\combase.dll
0x00007fff491d0000 - 0x00007fff49315000 	C:\Windows\system32\GDI32.dll
0x00007fff46690000 - 0x00007fff466a4000 	C:\Windows\SYSTEM32\profapi.dll
0x00007fff44bf0000 - 0x00007fff44c8f000 	C:\Windows\SYSTEM32\SHCORE.dll
0x00007fff47b30000 - 0x00007fff47b64000 	C:\Windows\system32\IMM32.DLL
0x00007fff47790000 - 0x00007fff478c9000 	C:\Windows\system32\MSCTF.dll
0x00007fff44380000 - 0x00007fff445da000 	C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17031_none_6242a4b3ecbb55a1\COMCTL32.dll
0x0000000067740000 - 0x0000000067812000 	E:\work2\bin\jdk1.8.0_05\jre\bin\msvcr100.dll
0x0000000066f10000 - 0x000000006773a000 	E:\work2\bin\jdk1.8.0_05\jre\bin\server\jvm.dll
0x00007fff40eb0000 - 0x00007fff40eb9000 	C:\Windows\SYSTEM32\WSOCK32.dll
0x00007fff429e0000 - 0x00007fff429ff000 	C:\Windows\SYSTEM32\WINMM.dll
0x00007fff47ac0000 - 0x00007fff47ac7000 	C:\Windows\system32\PSAPI.DLL
0x00007fff47730000 - 0x00007fff47788000 	C:\Windows\system32\WS2_32.dll
0x00007fff42910000 - 0x00007fff4293a000 	C:\Windows\SYSTEM32\WINMMBASE.dll
0x00007fff47ab0000 - 0x00007fff47ab9000 	C:\Windows\system32\NSI.dll
0x00007fff46870000 - 0x00007fff468ba000 	C:\Windows\SYSTEM32\cfgmgr32.dll
0x00007fff45430000 - 0x00007fff45456000 	C:\Windows\SYSTEM32\DEVOBJ.dll
0x0000000066f00000 - 0x0000000066f0f000 	E:\work2\bin\jdk1.8.0_05\jre\bin\verify.dll
0x0000000066ed0000 - 0x0000000066ef8000 	E:\work2\bin\jdk1.8.0_05\jre\bin\java.dll
0x0000000066eb0000 - 0x0000000066ec6000 	E:\work2\bin\jdk1.8.0_05\jre\bin\zip.dll
0x00007fff264c0000 - 0x00007fff26505000 	E:\work2\prgs\judatest\JCublas2-windows-x86_64.dll
0x00007fff25c60000 - 0x00007fff25cb1000 	C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\cudart64_60.dll
0x00007fff07440000 - 0x00007fff08ba6000 	C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\cublas64_60.dll
0x00007fff30860000 - 0x00007fff30907000 	C:\Windows\SYSTEM32\MSVCP110.dll
0x00007fff30780000 - 0x00007fff30854000 	C:\Windows\SYSTEM32\MSVCR110.dll
0x00007fff45290000 - 0x00007fff453b1000 	C:\Windows\system32\uxtheme.dll
0x00007fff34c10000 - 0x00007fff34c2f000 	E:\work2\prgs\judatest\JCudaRuntime-windows-x86_64.dll
0x00007fff40900000 - 0x00007fff40a88000 	C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments:
java_command: JCublas2Sample
java_class_path (initial): .;jcuda-0.6.0.jar;jcublas-0.6.0.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=E:/work2/bin/jdk1.8.0_05
CLASSPATH=.;....
USERNAME=me
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 8.1 , 64 bit Build 9600 

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, ht, tsc, tscinvbit

Memory: 4k page, physical 33457500k(25025684k free), swap 38438236k(26656764k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.5-b02) for windows-amd64 JRE (1.8.0_05-b13), built on Mar 18 2014 01:08:39 by "java_re" with MS VC++ 10.0 (VS2010)

time: Wed May 21 21:02:33 2014
elapsed time: 2 seconds

Hi

That’s strange. I can’t remember ever having encountered such an error for such a simple runtime example.

At the moment, I have no idea what might cause this error, but a quick checklist:

  • You mentioned in the other thread that you could not install CUDA 5.5, but only 6.0, so I assume that you did not test JCuda in any other configuration before, is that correct?
  • Are you sure that the JCuda version and the CUDA version match? (Note that JCuda 0.6.0RC is intended for the CUDA 6.0 Release Candidate, whereas JCuda 0.6.0 is intended for the CUDA 6.0 “production release”)
  • Do other examples run (e.g. the “basic test” from http://jcuda.org/tutorial/TutorialIndex.html#BasicTest )
  • The classic question: Does the corresponding CUDA example ( http://docs.nvidia.com/cuda/cuda-samples/#simple-cublas ) run properly?
  • … no further Ideas at the moment. I ran this sample as a test on a Win64 machine, and it worked as expected. I can try to run another test tomorrow (maybe with Java8 as well, although that should not influence anything… hopefully).

Sorry for the inconveniences,
bye
Marco

Hi. The CUDA 6.0 worked before. I should have tested again. After your post I checked: it did not work. After removing and reinstalling the latest drivers - it now works again. All the jcuda examples I tested then work like a charm. So the source for inconveniences is completely on my side. Thank you very much for your help. Next time I will test the CUDA examples first.

Good to hear that it could be solved so easily :slight_smile:

Hello @Marco13 I am getting the same erro with Jcuda 0.8.0 and 0.10.0. I tried everything which I know about Jcuda but still it is not getting resolved. I have run your github examples on my machine and those run fine while my custom kernels and code are not running and throwing the above error mentioned. For example, I tried the kernel from jcuda tutorials in which we add two vectors element wise. But still getting the error. Any suggestions or help will be appreciated.

OK that’s a very old thread. I’ll consider moving this into an own thread, depending on how it develops.

First of all, the problem in this thread originally seemed to be resolved after installing the appropriate drivers. This is also (particularly) relevant when you say that you tried it with JCuda 0.8.0 and 10.0.0 (not 0.10.0). So: Which version of CUDA do you have installed, exactly?

Then, which example did you try, and how? Note that the JCudaVectorAdd example from https://github.com/jcuda/jcuda-samples/blob/master/JCudaSamples/src/main/java/jcuda/driver/samples/JCudaVectorAdd.java is essentially what is described on the Tutorial site (although the Tutorial explains the basic concepts, and does not contain the full code).

Or more specifically: Does the JCudaVectorAdd example work for you?
Can you post the code (Java+.CU) of an example that does not work?