An Open-Source GPGPU Compiler...

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Steve Maughan
Posts: 1221
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

An Open-Source GPGPU Compiler...

Post by Steve Maughan »

This could be of interest to computer chess...

http://research.google.com/pubs/pub45226.html

Anyone able to compile Stockfish using this?

- Steve
http://www.chessprogramming.net - Maverick Chess Engine
mar
Posts: 2555
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: An Open-Source GPGPU Compiler...

Post by mar »

As I understand, this is a CUDA compiler;
You can't simply grab existing C++ source and magically benefit from GPGPUs
You have to write carefully optimized CUDA kernels, memory management is also tricky.
smatovic
Posts: 2645
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: An Open-Source GPGPU Compiler...

Post by smatovic »

As I understand, this is a CUDA compiler;
Yes, it seems to be an open-source alternative to nvcc, Nvidia's proprietary CUDA compiler. It can compile CUDA kernel code to PTX (nv*s ISA) which is run by nv's device driver via just in time compilation.
You can't simply grab existing C++ source and magically benefit from GPGPUs
...in some cases of simple data or task parallelism compiler directives could be enough to make use of GPGPU.

https://en.wikipedia.org/wiki/OpenACC
You have to write carefully optimized CUDA kernels, memory management is also tricky.
I agree, it can be tricky to map a problem onto GPU.

...btw: AMD released HIP, which should be able to run CUDA code on AMD GPU and CPU devices.

http://www.amd.com/Documents/HIP-Datasheet.pdf

--
Srdja