Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Julia to program my GPU & CPU?

My system has graphics card. I do not play games.

I want to program some high performance computing stuff for fun.

Can I use JULIA lang to leverage my hardware?

like image 872
suryakrupa Avatar asked Jun 10 '15 16:06

suryakrupa


People also ask

Can you code a GPU?

What Kind Of Code Can Be Run On Gpu? With a CUDA programing model software engineers are able to build general-purpose applications such as C/C++ and Fortran by creating CUDA-enabled GPUs and using a wrapper from the open source TensorFlow code library.

What is Julia GPU?

JuliaGPU is a Github organization created to unify the many packages for programming GPUs in Julia. With its high-level syntax and flexible compiler, Julia is well positioned to productively program hardware accelerators like GPUs without sacrificing performance.

What language is used for GPU programming?

There are several. OpenCL, CUDA, and Halide are all languages for writing programs that can be run on GPUs. But all of these are designed first and foremost for C or C++.

Can you run a Python script on a GPU?

Thus, running a python script on GPU can prove to be comparatively faster than CPU, however, it must be noted that for processing a data set with GPU, the data will first be transferred to the GPU's memory which may require additional time so if data set is small then CPU may perform better than GPU.


1 Answers

YES!

Enter OpenCL.jl

*how to install?

Pkg.add("OpenCL"); 
Pkg.update()
  • Use the following link to check the various OPENCL compute platforms on your hardware

https://github.com/JuliaGPU/OpenCL.jl/blob/master/examples/performance.jl

like image 118
suryakrupa Avatar answered Sep 28 '22 06:09

suryakrupa