10093

OpenCL API Extensions to achieve Multi-level Parallelism for Efficient Implementation of Strassen’s Matrix Multiplication on GPUs

Sivaramakrishnan Kasiviswanathan
Indian Institute of Science, Bangalore
Indian Institute of Science, 2013
@article{kasiviswanathan2013opencl,

   title={OpenCL API Extensions to achieve Multi-level Parallelism for Efficient Implementation of Strassen’s Matrix Multiplication on GPUs},

   author={Kasiviswanathan, Sivaramakrishnan and Education, Supercomputer},

   year={2013}

}

Download Download (PDF)   View View   Source Source   

488

views

Strassen’s matrix multiplication algorithm is an efficient and widely used practical algorithm for matrix multiplication. In its basic form, the algorithm is a series of recursive steps to decompose the matrices, multiply intermediate matrices and another set of recursive steps to recompose the product matrix. Implementing the algorithm on a GPU requires it to be converted into an iterative algorithm and choosing the right mode of execution to achieve maximum parallelism. The iterative algorithm has aspects of both task and data parallelism. Modern GPUs and OpenCL constructs help to program and execute algorithms in either data parallel mode or task parallel mode. Exploiting hybrid parallelism that handles both data as well as task parallelism will be beneficial. However, the onus is on the programmer to understand the underlying device architecture and APIs to extract maximum parallelism in either data parallel mode or task parallel mode. We present some results of such platform aware implementations of Strassen’s algorithm. We also present results of implementation of hybrid parallelism by programmatic tweaking of the features of a device that supports simultaneous execution of multiple independent kernels. In our implementation each kernel is a light-weight kernel that does a single-task and within each kernel data parallelism is achieved. We have evaluated the scope for efficient implementation of the iterative Strassen’s algorithm in different programming modes and based on the results we propose a hybrid task-and-data-parallel OpenCL API extension that reduces the burden on the programmer as well as the run-time synchronization overhead to execute multiple kernels. This proposed API extension will provide native support for hybrid parallelism which is the best among all programming modes.
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

* * *

* * *

Follow us on Twitter

HGPU group

1511 peoples are following HGPU @twitter

Like us on Facebook

HGPU group

259 people like HGPU on Facebook

* * *

Free GPU computing nodes at hgpu.org

Registered users can now run their OpenCL application at hgpu.org. We provide 1 minute of computer time per each run on two nodes with two AMD and one nVidia graphics processing units, correspondingly. There are no restrictions on the number of starts.

The platforms are

Node 1
  • GPU device 0: nVidia GeForce GTX 560 Ti 2GB, 822MHz
  • GPU device 1: AMD/ATI Radeon HD 6970 2GB, 880MHz
  • CPU: AMD Phenom II X6 @ 2.8GHz 1055T
  • RAM: 12GB
  • OS: OpenSUSE 13.1
  • SDK: nVidia CUDA Toolkit 6.5.14, AMD APP SDK 3.0
Node 2
  • GPU device 0: AMD/ATI Radeon HD 7970 3GB, 1000MHz
  • GPU device 1: AMD/ATI Radeon HD 5870 2GB, 850MHz
  • CPU: Intel Core i7-2600 @ 3.4GHz
  • RAM: 16GB
  • OS: OpenSUSE 12.3
  • SDK: AMD APP SDK 3.0

Completed OpenCL project should be uploaded via User dashboard (see instructions and example there), compilation and execution terminal output logs will be provided to the user.

The information send to hgpu.org will be treated according to our Privacy Policy

HGPU group © 2010-2015 hgpu.org

All rights belong to the respective authors

Contact us: