JCuda - Java bindings for CUDA
Refer to jcuda-main for further information and build instructions.
JCuda samples
License: MIT License
JCuda - Java bindings for CUDA
Refer to jcuda-main for further information and build instructions.
Windows 10
jcuda-samples/JCudaSamples/src/main/java/jcuda/runtime/samples/JCudaPrintDeviceInfo.java
Exception in thread "main" jcuda.CudaException: cudaErrorInsufficientDriver
at jcuda.runtime.JCuda.checkResult(JCuda.java:481)
at jcuda.runtime.JCuda.cudaGetDeviceCount(JCuda.java:527)
at demo.JCudaPrintDeviceInfo.main(JCudaPrintDeviceInfo.java:14)
I had to add dependency jcuda-windows64 ver 6.5 to build jcuda-samples project
I would like to run some sample classes with Cuda 11 and JCuda 10.2.0. There seems to be compatibility problems:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error while loading native library "JCurand-10.2.0-windows-x86_64"
Are there any plans to support Cuda 11?
To run Java cuda applications as regular ( not main ) class Collable and Runable wrappers are the prerequisit. Running Collable and Runnable classes requirs thread safety test. Both are almost done. I will assign these issues to myself
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error while loading native library "JCublas2-0.8.0-windows-x86_64"
Operating system name: Windows 10
Architecture : amd64
Architecture bit size: 64
---(start of nested stack traces)---
Stack trace from the attempt to load the library as a file:
java.lang.UnsatisfiedLinkError: C:\Users\chenjh\AppData\Local\Temp\JCublas2-0.8.0-windows-x86_64.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jcuda.LibUtils.loadLibrary(LibUtils.java:143)
at jcuda.jcublas.JCublas2.initialize(JCublas2.java:81)
at jcuda.jcublas.JCublas2.(JCublas2.java:66)
at jcuda.runtime.samples.JCudaRuntimeMappedMemory.main(JCudaRuntimeMappedMemory.java:48)
Stack trace from the attempt to load the library as a resource:
java.lang.UnsatisfiedLinkError: C:\Users\chenjh\AppData\Local\Temp\JCublas2-0.8.0-windows-x86_64.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at jcuda.LibUtils.loadLibraryResource(LibUtils.java:260)
at jcuda.LibUtils.loadLibrary(LibUtils.java:158)
at jcuda.jcublas.JCublas2.initialize(JCublas2.java:81)
at jcuda.jcublas.JCublas2.(JCublas2.java:66)
at jcuda.runtime.samples.JCudaRuntimeMappedMemory.main(JCudaRuntimeMappedMemory.java:48)
---(end of nested stack traces)---
at jcuda.LibUtils.loadLibrary(LibUtils.java:193)
at jcuda.jcublas.JCublas2.initialize(JCublas2.java:81)
at jcuda.jcublas.JCublas2.<clinit>(JCublas2.java:66)
at jcuda.runtime.samples.JCudaRuntimeMappedMemory.main(JCudaRuntimeMappedMemory.java:48)
I have installed the CUDA 11.1.1. Then I run the samples, I get the problem :Exception in thread "main" java.lang.UnsatisfiedLinkError: Error while loading native library "JCudaRuntime-11.1.1-windows-x86_64"
My computer enviroment is no problem: win10 64bit + cuda10.0 + jcuda 10.0.
Other samples are passed, but there are two bugs when I test all java source (directory: driver/gl.samples) related to opengl and JCudaRuntimeUnifiedMemory.java . The former reminds me with erro massage "CUDA_ERROR_OPERATING_SYSTEM on thread AWT-EventQueue-0", and after I debug it I only conclude that it comes from a wrong return of native methond "cuGraphicsGLRegisterBufferNative" ( it doesn't appear when I use visual studio 2012 to test the methond, I don't know why). The latter will fail with a not responding even a crash. Obviously, the system call isn't successful.
Threre are few simple steps which can ease coordination:
Hi, on the current head, I am seeing this:
mvn clean test
....
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/mw529/workspace/jcuda-samples/JCudaSamples/src/main/java/jcuda/jcusolver/samples/JCusolverSpSample.java:[218,26] error: no suitable method found for createDoubleMatrixHostCSR(int,int,double[],int[],int[])
[ERROR] method DoubleMatrices.createDoubleMatrixHostCSR(DoubleMatrixHost,double) is not applicable
(actual and formal argument lists differ in length)
method DoubleMatrices.createDoubleMatrixHostCSR(DoubleMatrixDeviceCSR) is not applicable
(actual and formal argument lists differ in length)
method DoubleMatrices.createDoubleMatrixHostCSR(int,int,int) is not applicable
(actual and formal argument lists differ in length)
/home/mw529/workspace/jcuda-samples/JCudaSamples/src/main/java/jcuda/jcusolver/samples/JCusolverSpSample.java:[897,29] error: no suitable method found for createDoubleMatrixHostCSR(int,int,double[],int[],int[])
[INFO] 2 errors
Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.