期刊文献+
共找到2篇文章
< 1 >
每页显示 20 50 100
CUDA-NP: Realizing Nested Thread-Level Parallelism in GPGPU Applications 被引量:3
1
作者 杨毅 李超 周辉阳 《Journal of Computer Science & Technology》 SCIE EI CSCD 2015年第1期3-19,共17页
Parallel programs consist of series of code sections with different thread-level parallelism (TLP). As a result, it is rather common that a thread in a parallel program, such as a GPU kernel in CUDA programs, still ... Parallel programs consist of series of code sections with different thread-level parallelism (TLP). As a result, it is rather common that a thread in a parallel program, such as a GPU kernel in CUDA programs, still contains both sequential code and parallel loops. In order to leverage such parallel loops, the latest NVIDIA Kepler architecture introduces dynamic parallelism, which allows a GPU thread to start another GPU kernel, thereby reducing the overhead of launching kernels from a CPU. However, with dynamic parallelism, a parent thread can only communicate with its child threads through global memory and the overhead of launching GPU kernels is non-trivial even within GPUs. In this paper, we first study a set of GPGPU benchmarks that contain parallel loops, and highlight that these benchmarks do not have a very high loop count or high degree of TLP. Consequently, the benefits of leveraging such parallel loops using dynamic parallelism are too limited to offset its overhead. We then present our proposed solution to exploit nested parallelism in CUDA, referred to as CUDA-NP. With CUDA-NP, we initially enable a high number of threads when a GPU program starts, and use control flow to activate different numbers of threads for different code sections. We implement our proposed CUDA-NP framework using a directive-based compiler approach. For a GPU kernel, an application developer only needs to add OpenMP-like pragmas for parallelizable code sections. Then, our CUDA-NP compiler automatically generates the optimized GPU kernels. It supports both the reduction and the scan primitives, explores different ways to distribute parallel loop iterations into threads, and efficiently manages on-chip resource. Our experiments show that for a set of GPGPU benchmarks, which have already been optimized and contain nested parallelism, our proposed CUDA-NP framework further improves the performance by up to 6.69 times and 2.01 times on average. 展开更多
关键词 GPGPU nested parallelism compiler local memory
下载PDF
Analysis of Factors Affecting Execution Performance of OpenMP Programs 被引量:8
2
作者 李建江 舒继武 +2 位作者 陈永健 王鼎兴 郑纬民 《Tsinghua Science and Technology》 EI CAS 2005年第3期304-308,共5页
OpenMP is able to develop multithreaded programs with lower cost as a promising way to quickly parallelize a great number of serial programs. However, there are many difficulties when developing OpenMP multithreaded p... OpenMP is able to develop multithreaded programs with lower cost as a promising way to quickly parallelize a great number of serial programs. However, there are many difficulties when developing OpenMP multithreaded programs. Most importantly, the performance of OpenMP programs cannot be guar- anteed, which has greatly affected the application of OpenMP. This paper examines several factors that af- fect the execution performance of OpenMP programs, including loop transformation, scheduling strategy, the number of threads, and nested parallelism. The results show that one of the key reasons for perform- ance degradation is load imbalance, which can be corrected by reasonable use of these key factors to im- prove the execution performance of OpenMP programs. 展开更多
关键词 OpenMP loop transformation scheduling strategy nested parallelism number of threads load imbalance
下载PDF
上一页 1 下一页 到第 页
使用帮助 返回顶部