For my science fair project I have to write a computationally-intensive algorithm that is well suited to parallelization. I have read about OpenCL and CUDA and it seems they are mainly used from C/C++. While it would not be that difficult for me to pick up a bit of C to write a simple main, I was wondering how big the performance hit would be if I used Java or Python bindings for my GPU computation? Specifically, I was more interested in the performance hit using CUDA because that's the framework I'm planning on using.
GPGPU performance in high-level languages
342 Views Asked by Elliot Gorokhovsky At
1
There are 1 best solutions below
Related Questions in CUDA
- direct global memory access using cuda
- Threads syncronization in CUDA
- Merge sort using CUDA: efficient implementation for small input arrays
- why cuda kernel function costs cpu?
- How to detect NVIDIA CUDA Architecture
- What is the optimal way to use additional data fields in functors in Thrust?
- cuda-memcheck fails to detect memory leak in an R package
- Understanding Dynamic Parallelism in CUDA
- C/CUDA: Only every fourth element in CudaArray can be indexed
- NVCC Cuda 5.0 on Ubuntu 12.04 /usr/lib/libudt.so file format not recognized
- Reduce by key on device array
- Does CUDA include a real c++ library?
- cuMemcpyDtoH yields CUDA_ERROR_INVALID_VALUE
- Different Kernels sharing SMx
- How many parallel threads i can run on my nvidia graphic card in cuda programming?
Related Questions in OPENCL
- Disable OpenCL in OpenCV completely
- opencl duplicate memory object on device
- Can I use Julia to program my GPU & CPU?
- openCL CL_OUT_OF_RESOURCES Error
- Debugging OpenCL with Intel SDK for visual studio dont stop at breakpoints
- NetBeans gives segfault, running the prgram using terminal does not
- opencl local memory and workgroup size
- Visual Studio 2013, Intel INDE 2015 update 2, Platform IDS change while debug
- Can I run Cuda or OpenCl on Intel processor graphics I7 (3rd or 4rd generation)
- How much, if any, does the choice of host language affect OpenCL performance?
- Row and Column-Major in opencl and pyopencl
- ClEnqueueCopyBuffer with offset 1
- VexCL vector of structs?
- How many threads/work-items are used?
- Kernel file not opening in XCode: C++ openCL code
Related Questions in GPGPU
- How to detect NVIDIA CUDA Architecture
- Different Kernels sharing SMx
- How to do calculation using OpenGL ES 2.0/3.0?
- How to run PageRank in Blazegraph on a dataset?
- When do we need two dimension threads in CUDA?
- CUDA cuBlasGetmatrix / cublasSetMatrix fails | Explanation of arguments
- Confusion over compute units and expected cores on nvidia GPU
- Declaring a cl_uint variable in OpenCL C leads to Segmentation fault (core dumped)
- Unkown Issue with input sequence size of FFT in OpenCL
- Passing Host Function as a function pointer in __global__ OR __device__ function in CUDA
- Nvidia OpenCL hangs on blocking buffer access
- CUDA: Cuda memory accessing different than OpenCL? What is causing this illegal memory access?
- Computing on variable length arrays in OpenCL
- AMD HCC Swizzle Intrinsic
- Sparse matrix multiplication OpenCL vs Intel MKL performance
Related Questions in PYCUDA
- PyCUDA large nonuniform matrix operations
- Efficient library to detect and clip overlapping rectangles with python
- PyCUDA misaligned address cleanup failure
- How to do element-wise assignment in pycuda / scikits.cuda?
- GPGPU performance in high-level languages
- How to use thrust with PyCuda?
- Numbapro cuda python defining array in thread register in gpu
- How to convert an upper/lower gpuarray to the specific format required by cublasStbsv?
- cuda runtime api and dynamic kernel definition
- Installing Pycuda and using Pycharm
- Time taken to copy matrix to host increases by how many times the matrix was used
- How to generate random number inside pyCUDA kernel?
- processing an image using CUDA implementation, python (pycuda) or C++?
- PyCUDA unable to resize images with a cuda program
- Can't install pycuda with pip
Related Questions in JOCL
- GPGPU performance in high-level languages
- Help with JOCL on Mac
- OpenCL (JOCL) - 2D calculus over two arrays in Kernel
- Need help adding OpenCL(GPU Usage)
- opencl kernel float4 issues
- How to read txt file in OpenCL
- Releasing Memory Allocated by Native Libraries in Java
- OpenCL & Java - Weird Performance Results
- Java: Cast or reference multidimensional array into single dimensional array
- jocl neural network
- copying an image onto another with JOCL/OpenCL
- Why would JOCL CL.clEnqueueReadBuffer never return?
- CL_INVALID_KERNEL_ARGS in JOCL (a Java Binding to OpenCL).
- determine global memory available on GPU with JOCL?
- "UnsatisfiedLinkError: Native Library already loaded in another classloader" in multimodule project
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 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?
In general, every time you add an abstraction layer you're loosing performance but, in the case of CUDA this is not completely true because, whether using Python or Java you'll end up writing your CUDA kernels on C/Fortran, so the performance in the GPU side will be the same as using C/Fortran (check some pyCUDA examples here)
The bad news it that Java and Python will never achieve the performance of compiled languages such as C on certain tasks, see this SO answer for a more detailed discussion about this topic. Here is a good discussion about C versus Java, also on SO.
There are many questions and discussions about performance comparison between interpreted and compiled languages, so I encourage you to read some of them.