Bolt provides an STL compatible library of high level constructs for creating accelerated data parallel applications. Code written using STL or other STL compatible libraries (example: TBB) can be converted to Bolt in minutes. In its open-source debut, Bolt supports C++ AMP in addition to OpenCL™ as underlying supported compute technologies. With Bolt, kernel code to be accelerated is written in-line in the C++ source file. No OpenCL™ or C++ AMP API calls are required since all initialization of and communication with the OpenCL™ or C++ AMP device is handled by the library. Bolt requires significantly fewer lines-of-code and less developer effort Bolt is straightforward to use and includes comprehensive documentation for the library routines, memory management, control interfaces, and host/device code sharing.
In addition to adding support for C++ AMP and CPU-only systems, the Bolt also includes an array of Bolt capabilities by including support for common compute-optimized routines including sort, scan, transform, and reduce operations. Additionally you will find performance improvements, and we will continue to improve performance in future Bolt releases.
Monte Carlo Sample in Bolt
This blog post describes a Bolt sample using a Monte Carlo algorithm to compute PI. A library and sample are provided below.
Read the blog post
AMD is committed to open standards and open software, and as promised back in our developer summit last year (AFDS 2012), we made Bolt available as an open source community project. We did this as soon as possible at a Beta stage to promote early usage, invite developer feedback and motivate contributions to the project. We feel this will accelerate Bolt’s evolution by keeping it tightly aligned with developer needs and actual usage thus helping achieve its full value. Of course AMD will continue to actively drive contributions and manage the project.
The source to Bolt is now available on GitHub, the open source social programming platform
We welcome the community to help build the Bolt ecosystem by becoming a contributor to the Bolt project. We also invite you to help promote Bolt by submitting Bolt sample application code to the samples repository on GitHub. We’re looking for well written example code that highlights Bolt’s ability to deliver high performance with ease of programming.
To learn more about Bolt please take a look at Ben Sander’s Webinar (@ Dr. Dobbs – Watch the Heterogeneous Computing Webinar)
Visit the Bolt forum to share your experience with your peers, and to learn more about our Bolt sample competition.
Bolt is released under an Apache 2.0 license and in coming months is planned to be made available on a public repository.
- Visit AMD SDK Sample Browser.
- In the “Technology,” select “Bolt”.
- Then select “MonteCarloPI” from the sample menu.
Monte-Carlo π sample
Please find a new Bolt sample for computing π using a Monte-Carlo algorithm in the table below. For further details on the sample, and how it is created with a few simple modifications from a sample using the C++ Standard Template Library, please refer to Siu Chi’s blog.
Latest Bolt Library
An update to the Bolt library preview is available which fixes some minor issues. Please install this updated version of the Bolt library on your development system in order to use the new Bolt sample that illustrates use of Bolt to compute π using a monte-carlo type algorithm.