arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1705.06965cs.OS
收藏

GPU系统调用

GPU System Calls

Ján Veselý, Arkaprava Basu, Abhishek Bhattacharjee, Gabriel Loh, Mark Oskin, Steven K. Reinhardt

摘要:

GPU正在成为一流的计算公民,并被要求执行越来越复杂的工作。现代GPU越来越多地支持可编程性增强功能,如共享虚拟内存和硬件缓存一致性,使它们能够运行更多种程序。但通用编程的一个关键方面,GPU仍然缺乏的是调用系统调用的能力。我们探讨了如何在GPU程序中直接调用通用系统调用。我们研究如何系统调用应与流行的GPGPU编程模型,成千上万的线程组织在一个层次结构的执行组:应调用一个系统调用在个别GPU任务,或在不同的执行组级别?在这些执行组的层次结构中,GPU系统调用的合理排序语义是什么?为了研究这些问题,我们实现了GENESYS --一种允许GPU程序在Linux操作系统中调用系统调用的机制。对Linux进行了许多细微的更改是必要的,因为现有的内核假设只有CPU调用系统调用。我们使用微基准测试和三个应用程序,行使的文件系统,网络和内存分配子系统的内核的性能分析GENESYS。我们通过分析所有Linux系统调用对GPU的适用性得出结论。

英文摘要:

GPUs are becoming first-class compute citizens and are being tasked to perform increasingly complex work. Modern GPUs increasingly support programmability- enhancing features such as shared virtual memory and hardware cache coherence, enabling them to run a wider variety of programs. But a key aspect of general-purpose programming where GPUs are still found lacking is the ability to invoke system calls. We explore how to directly invoke generic system calls in GPU programs. We examine how system calls should be meshed with prevailing GPGPU programming models where thousands of threads are organized in a hierarchy of execution groups: Should a system call be invoked at the individual GPU task, or at different execution group levels? What are reasonable ordering semantics for GPU system calls across these hierarchy of execution groups? To study these questions, we implemented GENESYS -- a mechanism to allow GPU pro- grams to invoke system calls in the Linux operating system. Numerous subtle changes to Linux were necessary, as the existing kernel assumes that only CPUs invoke system calls. We analyze the performance of GENESYS using micro-benchmarks and three applications that exercise the filesystem, networking, and memory allocation subsystems of the kernel. We conclude by analyzing the suitability of all of Linux's system calls for the GPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑