{"title":"Benchmarking, autotuning and crowdtuning OpenCL programs using the Collective Knowledge framework","authors":"Anton Lokhmotov, G. Fursin","doi":"10.1145/2909437.2909460","DOIUrl":"https://doi.org/10.1145/2909437.2909460","url":null,"abstract":"Autotuning is a popular technique to ensure performance portability for important algorithms such as BLAS, FFT and DNN across the ever evolving software and hardware stack. Unfortunately, when performed on a single machine, autotuning can explore only a tiny fraction of the ever growing and non-linear optimization spaces and thus can easily miss optimal solutions. We propose to practically solve this problem with the help of the community using the open-source Collective Knowledge framework (CK). We have customized the universal multi-objective autotuning engine of CK to optimize the local work size and other parameters of OpenCL workloads across diverse inputs and devices. Optimal solutions (with speed increases of up to 20x and energy savings of up to 30% over the default configurations) are preserved in the open repository of optimization knowledge at http://cknowledge.org/repo.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121905979","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"The OpenCL Library Ecosystem: Current Status and Future Perspectives","authors":"K. Rupp","doi":"10.1145/2909437.2909452","DOIUrl":"https://doi.org/10.1145/2909437.2909452","url":null,"abstract":"OpenCL as an open standard for parallel programming of heterogeneous systems seems to be an attractive choice for software library implementations. Indeed, iwocl.org1 lists 83 OpenCL-enabled libraries as of February 12, 2016, suggesting a healthy library ecosystem. On closer inspection, however, a significant share of these libraries are either OpenCL bindings for other languages, libraries with OpenCL features in experimental state at best, or orphaned. Clearly, there is room for improvement; but what is required to improve the state of the OpenCL-enabled library ecosystem? Which future extensions to OpenCL can make library development easier? This talk aims to stimulate discussion by sharing lessons learnt in the area of high performance computing through the development of ViennaCL2.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130083046","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Intel® Threading Building Block (Intel® TBB) flow graph as a software infrastructure layer for OpenCL™-based computations","authors":"Alexei Katranov, Alexey Kukanov","doi":"10.1145/2909437.2909446","DOIUrl":"https://doi.org/10.1145/2909437.2909446","url":null,"abstract":"Modern computing systems are becoming heterogeneous with a variety of programmable units: CPU, GPU, FPGA, domain-specific accelerators, etc. OpenCL™ API is a cross-platform programming model for a wide range of computing devices, but using the language in a complex heterogenous system remains a challenge. Intel® Threading Building Blocks (Intel® TBB) is a widely used C++ library for shared-memory parallel programming that provides the flow graph functionality to express unstructured parallelism and asynchronous computations. Our presentation shows how OpenCL and Intel TBB flow graph can be used in conjunction to simplify programming for complex heterogeneous systems.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"30 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133180677","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Runtime comparison solving Gray-Scott equation on different OpenCL devices","authors":"Michael Quell","doi":"10.1145/2909437.2909461","DOIUrl":"https://doi.org/10.1145/2909437.2909461","url":null,"abstract":"n example of a reaction-diffusion equation with chaotic solutions. You can expect patterns to emerge from chaos. A uniformly discretization in space and periodic boundary conditions allows the Fast Fourier Transform to be used, so that when coupled with a suitable time stepping scheme a numerical method that suits the parallelism of OpenCL is obtained. The code was benchmarked on various CPU and GPU devices. Performance results for various problem sizes are shown. Example code can be found at: https://github.com/MichaelQuell/GrayScott-OpenCl","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"33 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123357881","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"OpenCL caffe: Accelerating and enabling a cross platform machine learning framework","authors":"Junli Gu, Y. Liu, Yuan Gao, Maohua Zhu","doi":"10.1145/2909437.2909443","DOIUrl":"https://doi.org/10.1145/2909437.2909443","url":null,"abstract":"Deep neural networks (DNN) achieved significant breakthrough in vision recognition in 2012 and quickly became the leading machine learning algorithm in Big Data based large scale object recognition applications. The successful deployment of DNN based applications pose challenges for a cross platform software framework that enable multiple user scenarios, including offline model training on HPC clusters and online recognition in embedded environments. Existing DNN frameworks are mostly focused on a closed format CUDA implementations, which is limiting of deploy breadth of DNN hardware systems. This paper presents OpenCL™ caffe, which targets in transforming the popular CUDA based framework caffe [1] into open standard OpenCL backend. The goal is to enable a heterogeneous platform compatible DNN framework and achieve competitive performance based on OpenCL tool chain. Due to DNN models' high complexity, we use a two-phase strategy. First we introduce the OpenCL porting strategies that guarantee algorithm convergence; then we analyze OpenCL's performance bottlenecks in DNN domain and propose a few optimization techniques including batched manner data layout and multiple command queues to better map the problem size into existing BLAS library, improve hardware resources utilization and boost OpenCL runtime efficiency. We verify OpenCL caffe's successful offline training and online recognition on both server-end and consumer-end GPUs. Experimental results show that the phase-two's optimized OpenCL caffe achieved a 4.5x speedup without modifying BLAS library. The user can directly run mainstream DNN models and achieves the best performance for a specific processors by choosing the optimal batch number depending on H/W properties and input data size.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"9 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124306133","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
T. Klein, S. Bruckner, E. Gröller, M. Hadwiger, P. Rautek
{"title":"Towards Interactive Visual Exploration of Parallel Programs using a Domain-Specific Language","authors":"T. Klein, S. Bruckner, E. Gröller, M. Hadwiger, P. Rautek","doi":"10.1145/2909437.2909459","DOIUrl":"https://doi.org/10.1145/2909437.2909459","url":null,"abstract":"The use of GPUs and the massively parallel computing paradigm have become wide-spread. We describe a framework for the interactive visualization and visual analysis of the run-time behavior of massively parallel programs, especially OpenCL kernels. This facilitates understanding a program's function and structure, finding the causes of possible slowdowns, locating program bugs, and interactively exploring and visually comparing different code variants in order to improve performance and correctness. Our approach enables very specific, user-centered analysis, both in terms of the recording of the run-time behavior and the visualization itself. Instead of having to manually write instrumented code to record data, simple code annotations tell the source-to-source compiler which code instrumentation to generate automatically. The visualization part of our framework then enables the interactive analysis of kernel run-time behavior in a way that can be very specific to a particular problem or optimization goal, such as analyzing the causes of memory bank conflicts or understanding an entire parallel algorithm.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"4 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114883459","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Jeff Fifield, R. Keryell, Hervé Ratigner, Henry Styles, Jim Wu
{"title":"Optimizing OpenCL applications on Xilinx FPGA","authors":"Jeff Fifield, R. Keryell, Hervé Ratigner, Henry Styles, Jim Wu","doi":"10.1145/2909437.2909447","DOIUrl":"https://doi.org/10.1145/2909437.2909447","url":null,"abstract":"In this presentation we focus on current Xilinx FPGA (Field-Programmable Gate Array) platforms with the SDAccel OpenCL environment. FPGA have the unique feature of a reconfigurable architecture by opposition to CPU, GPU or DSP which have a fixed architecture and are only programmable. For example the elementary functions in an FPGA can be configured according to an addressable memory, as such the interconnection among them, the internal memory organization, but also even the ultra high-speed input/output of the chip to interface with the outside world. This fine grain configurability allows high performance and power efficiency. We introduce the architecture of modern FPGA with their main building blocks and how functional operations can be expressed. The translation of imperative languages down to the hardware level is done through High-Level Synthesis. It can be done in several ways with different time/surface trade-off, for example by playing on parallelism and pipelining.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127176090","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"OpenCL meets Open Source Streaming Analytics","authors":"Robin Grosman, Yuanxi Chen, Peter Chun","doi":"10.1145/2909437.2909457","DOIUrl":"https://doi.org/10.1145/2909437.2909457","url":null,"abstract":"OpenCL is leveraged to build a flexible, scalable streaming analytics platform using FPGA. The end to end solution can demonstrate over a 2x price/performance advantage over the software baseline. All this can be customized by an application developer who may not even know that hardware acceleration is being used.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"61 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127562776","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"OpenCL-Based Mobile GPGPU Benchmarking: Methods and Challenges","authors":"R. Aviv, Guohui Wang","doi":"10.1145/2909437.2909441","DOIUrl":"https://doi.org/10.1145/2909437.2909441","url":null,"abstract":"Benchmarking general-purpose computing on graphics processing unit (GPGPU) aims to profile and compare performance across different devices. Due to the low-level nature of most GPGPU APIs, GPGPU benchmarks are also useful for architectural exploration and program optimization. This can be challenging in mobile devices due to lack of underlying hardware details and limited profiling capabilities in some platforms. Measuring the performance of mobile GPU by executing benchmarks covering major hardware and software features can reveal the strength and weakness of a GPGPU system, enable better program optimization and make automatic performance tuning possible. In this paper, we will describe several design methods of OpenCL-based mobile GPGPU benchmarking, and discuss key issues that one may encounter during development. We will also present design tips and guidelines to achieve more \"fair\" and accurate benchmarking results.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"9 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123146574","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Michael Wong, Adam Stanski, M. Rovatsou, Ruymán Reyes, Benedict R. Gaster, Bartok Sochaski
{"title":"C++ for OpenCL Workshop, IWOCL 2016","authors":"Michael Wong, Adam Stanski, M. Rovatsou, Ruymán Reyes, Benedict R. Gaster, Bartok Sochaski","doi":"10.1145/2909437.2909464","DOIUrl":"https://doi.org/10.1145/2909437.2909464","url":null,"abstract":"OpenCL™ is an open, royalty-free standard for heterogenous parallel programming. As the number of OpenCL™ platforms is increasing, the requests for better programmability and adoption of modern C++ paradigms is growing bigger. The C++ language is evolving and gradually adding more parallel and concurrency mechanisms as part of its core functionality, either in the language or in the library specifications. The Khronos OpenCL™ group is working towards providing C++ language features and programming paradigms which correspond and expose the high performance features of OpenCL™ devices. OpenCL™ proposes the C++ kernel language provisional specification as a language for programming 2.x OpenCL devices, in combination with the Khronos SPIR-V™ cross-API shader program intermediate language. Moreover, adding to the already published SYCL™ for OpenCL™ specification that is built on top of the OpenCL™ 1.2 capabilities, the SYCL working group is working on extensions for the second generation of OpenCL devices with Khronos SPIR-V™ support. We present all the efforts of the Khronos OpenCL™ to support modern C++ features and the different programming models and paradigms that are going to be supported as core features or as additional specifications. It is our desire to make this workshop a venue for introducing all of the new developments in OpenCL language and the engagement with the C++ community and its evolution towards parallel and heterogeneous platforms. It is a great opportunity for the OpenCL™ community to discuss these developments and provide feedback to the Khronos OpenCL™ group on its direction and proposed standards. It will be a half-day workshop, including a keynote from Michael Wong, ISOCPP.org Director, VP, OpenMP CEO, Chair of the WG SG14 for Low Latency and Gaming from IBM Corporation, XL C++ Compiler development.","PeriodicalId":429090,"journal":{"name":"Proceedings of the 4th International Workshop on OpenCL","volume":"35 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129008500","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}