Git Product home page Git Product logo

mavenized-jcuda's Introduction

Mavenized JCuda

Features:

  • Currently support JCuda 0.5.0, 0.5.5, 0.6.0RC (windows-i386, windows-x86_64), 0.6.0, 0.6.5 (windows-i386, windows-x86_64, unix-x86_64, mac-x86_64)
  • Local Maven repo with 5 sets of native libs (windows-i386, windows-x86_64, unix-i386, unix-x86_64, mac-x86_64)
  • Auto detection of OS family name and it's architecture (it's choose needed dependencies automatically)
  • Running any main class, that contained JCuda code easily (without classpath hell, just run Maven goal)

How to run JCuda code:

  • You need to install Cuda (5.0, 5.5, 6.0, 6.5) for your platform [here] 1
  • Set property <jcuda.version> in pom.xml to what you really use, e.g. 0.5.0 for Cuda 5.0, etc. (Cuda 6.5 - 0.6.5)
    • If you run JCuda 0.6.0RC and higher on Windows platform everything is ok
    • If you run JCuda 0.5.5 and lower on Windows or Unix platform - you should set profile manually by adding -P windows-x86_64_old or -P windows-x86_old or -P unix-x86_64_old, etc. to mvn clean package command, depends on architecture you use. For more info about Maven profiles take a look [here] 2
    • If you run JCuda 0.6.0 and higher on Unix x86_64 platform - everything is ok
    • If you run JCUda 0.6.0 and higher on Mac x86_64 - everything is ok
  • Call mvn clean package to build project (it will copy all dependencies to target/lib dir)
  • Call mvn exec:exec to run main class (org.mystic.cuda.JCudaRuntimeTest) with "Hello, JCuda" sample :)
  • If you want to run code directly from your IDE without Maven - you could do it via Run command in most of the IDE (Intellij IDEA, Eclipse, Netbeans, etc.) All you need to do - is to add property -Djava.library.path=target/lib (more information is on Stackoverflow - http://stackoverflow.com/q/28333226/2663985)
  • ???
  • Fork! Write your own JCuda code! Run! Report bugs! Support!

mavenized-jcuda's People

Contributors

mysterionrise avatar

Watchers

Marek Kolodziej avatar

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.