Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java for CUDA?

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java for CUDA?

    With Flash, CFD, encoding,etc getting GPU acceleration I was wondering would it be possible for Java to do so. What I mean is would it be possible for some one ( a massive Open Source project) to write a JVM that runs on a GPU? After all a GPU should be able to handle lot of the GUI(AWT/Swing stuff) and math based stuff (ie Array.sort(),etc) much faster than a CPU.
    It takes a long time to become young.


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Java for CUDA?

    No, it wouldnt. A graphics card can not do these things at all, it would be a lot slower actually.
    GPU's are good when doing simple floating point arithmetics which are massively parallel. Most java code is not floating point arithmetics. Especially Swing is using integers and Strings extensively. This would not go too well with a GPU. Especially since Swing uses many System calls.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java for CUDA?

    I'm not sure as to the exact problem you wish to solve with this, and as alluded to in the post above whether it will speed it up, but be that as it may have a look at JOCL

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Java for CUDA?

    Thread moved.

    If you describe the problem you're trying to solve, a more appropriate place in the forum may be found. Right now, it's an odd hardware question.

Similar Threads

  1. Java for CUDA?
    By Shadow703793 in forum Object Oriented Programming
    Replies: 0
    Last Post: March 3rd, 2010, 09:00 PM