Well I decided I prefer to use GPU over CPU especially since I'm working on a game and FPS will increase I expect. The thing is i'm not sure where to start. I can easily implement JOCL or JCUDA but after that I wouldnt know where to replace it from using CPU to GPU. Help is appreciated :)
Need help adding OpenCL(GPU Usage)
876 Views Asked by stdio.h At
1
There are 1 best solutions below
Related Questions in JAVA
- How to bind date in 24 hour format in ms chart
- For a SplineArea scrolling chart, show minute graduation on x-axis, but plot points every 6 seconds
- Winforms Chart - draw a allowed area on line chart
- Graph DataGrid Data on Chart
- AddXY points in a chart, Y point is shown but is not labeled
- Chart in winform displaying wrong Point
- Zooming of specific area in chart of win form
- c# MS chart get scrollbar value
- mschart - Poor interaction/cursor performance for larger data sets
- How do I make the grid lines on a Windows.Forms.DataVisualization.Charting.Chart scroll with the data?
Related Questions in GPU
- How to bind date in 24 hour format in ms chart
- For a SplineArea scrolling chart, show minute graduation on x-axis, but plot points every 6 seconds
- Winforms Chart - draw a allowed area on line chart
- Graph DataGrid Data on Chart
- AddXY points in a chart, Y point is shown but is not labeled
- Chart in winform displaying wrong Point
- Zooming of specific area in chart of win form
- c# MS chart get scrollbar value
- mschart - Poor interaction/cursor performance for larger data sets
- How do I make the grid lines on a Windows.Forms.DataVisualization.Charting.Chart scroll with the data?
Related Questions in CPU
- How to bind date in 24 hour format in ms chart
- For a SplineArea scrolling chart, show minute graduation on x-axis, but plot points every 6 seconds
- Winforms Chart - draw a allowed area on line chart
- Graph DataGrid Data on Chart
- AddXY points in a chart, Y point is shown but is not labeled
- Chart in winform displaying wrong Point
- Zooming of specific area in chart of win form
- c# MS chart get scrollbar value
- mschart - Poor interaction/cursor performance for larger data sets
- How do I make the grid lines on a Windows.Forms.DataVisualization.Charting.Chart scroll with the data?
Related Questions in JOCL
- How to bind date in 24 hour format in ms chart
- For a SplineArea scrolling chart, show minute graduation on x-axis, but plot points every 6 seconds
- Winforms Chart - draw a allowed area on line chart
- Graph DataGrid Data on Chart
- AddXY points in a chart, Y point is shown but is not labeled
- Chart in winform displaying wrong Point
- Zooming of specific area in chart of win form
- c# MS chart get scrollbar value
- mschart - Poor interaction/cursor performance for larger data sets
- How do I make the grid lines on a Windows.Forms.DataVisualization.Charting.Chart scroll with the data?
Related Questions in JCUDA
- How to bind date in 24 hour format in ms chart
- For a SplineArea scrolling chart, show minute graduation on x-axis, but plot points every 6 seconds
- Winforms Chart - draw a allowed area on line chart
- Graph DataGrid Data on Chart
- AddXY points in a chart, Y point is shown but is not labeled
- Chart in winform displaying wrong Point
- Zooming of specific area in chart of win form
- c# MS chart get scrollbar value
- mschart - Poor interaction/cursor performance for larger data sets
- How do I make the grid lines on a Windows.Forms.DataVisualization.Charting.Chart scroll with the data?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What kind of computations are you after? If those are compute intensive such as N-body gravity experiments, then you can simply copy variables to gpu then compute then copy results back to main memory.
If your objects have big data but small computation such as fluid dynamics or collision detection, then you should add interoperability between your graphics api and compute api. Then you can do only computations withouth any copying of data.(speed-up is like your GPU ram bandwidth divided by your pci-e bandwidth. For a HD7870, it is like 25x if compute power is not saturated already)
I used jocl and lwjgl using gl/cl interoperability in java and they were working very well.
Some neural network is trained with CPU(Encog) but used by GPU(jocl) to generate a map and drawn by LWJGL :(neuron weigths are changed a little to have some more randomizing effect)
Very important part is:
Example:
Changing a cpu code to a opencl code can be done automatically by APARAPI but Im not sure if it has interoperability.
If you need to do it yourself, then it is as easy as: