GithubHelp home page GithubHelp logo

jcuda-samples's Introduction

jcuda

JCuda - Java bindings for CUDA

Refer to jcuda-main for further information and build instructions.

jcuda-samples's People

Contributors

jcuda avatar yuripourre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jcuda-samples's Issues

jcuda 10

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)

Cuda 11 support: UnsatisfiedLinkError

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?

test error on win10 eclipse

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)

Version Problem?

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"

GL examples cause operating system call error

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.

Insteed of 6 - the easy way to coordinate Java development by several teams

Threre are few simple steps which can ease coordination:

  1. Label rcurrent project state as release candidate to postpone dealing with release procedure
  2. Use intermediate Nexus repository before posting version to Maven Central. It is very simple to install Nexus and add Nexus repository to maven configuration for every developer. Nexus doesn't need even server because it can be deployed to any claud infra as Nexus Docker container. Everybody can submit changes to Nexus without formal release.
    Everybody can build his/her own project master branch using core project release candidate
    Development pipeline of every team can use Nexus in its development and automated testing

JCusolverSpSample.java:[218,26] error: no suitable method found for createDoubleMatrixHostCSR

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.