Introduction to TTL, an Open Source Tensor and Tiling Library for OpenCL

Christopher Gearing, A. Zaks
{"title":"Introduction to TTL, an Open Source Tensor and Tiling Library for OpenCL","authors":"Christopher Gearing, A. Zaks","doi":"10.1145/3585341.3587953","DOIUrl":null,"url":null,"abstract":"OpenCL has an Image data type to represent multi-dimensional arrays of image data for processing in device Kernels. Whilst providing powerful functionality for image processing, they are designed towards the capabilities of GPUs and provide closed opaque functionality and data formats. This presentation presents a recently released Open-Source library, “Tensor and Tiling library”. TTL has been created to support multi-dimensional data for non-GPUs. Like the GPU Image type, the TTL tensor type has built-in attributes to describe its shape, layout and underlying data. The library provides methods for reading, writing, reasoning about the relative positioning of related Tensors, and attributes of the data beyond the extent of the Tensor. OpenCL C provides asynchronous data copy functions built into the language, allowing data transportation between the host and device memory systems. Many usage patterns where the devices have limited memory require the data to be Tiled and then pipelined through the device. Whilst the OpenCL primitives make this pipelining possible, the pipelining code can be a significant part of the development effort when the actual value added is the algorithm implementation itself. The TTL library offloads the tiling and pipelining boilerplate code allowing the programmer to focus on algorithm development. The presentation will present the Tensor and Tiling library. The library today is temporarily hosted at https://gitlab.khronos.org/opencl/ttl and, by the time of IWOCL 2023, will be finally hosted at https://github.com/KhronosGroup","PeriodicalId":360830,"journal":{"name":"Proceedings of the 2023 International Workshop on OpenCL","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2023 International Workshop on OpenCL","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3585341.3587953","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

OpenCL has an Image data type to represent multi-dimensional arrays of image data for processing in device Kernels. Whilst providing powerful functionality for image processing, they are designed towards the capabilities of GPUs and provide closed opaque functionality and data formats. This presentation presents a recently released Open-Source library, “Tensor and Tiling library”. TTL has been created to support multi-dimensional data for non-GPUs. Like the GPU Image type, the TTL tensor type has built-in attributes to describe its shape, layout and underlying data. The library provides methods for reading, writing, reasoning about the relative positioning of related Tensors, and attributes of the data beyond the extent of the Tensor. OpenCL C provides asynchronous data copy functions built into the language, allowing data transportation between the host and device memory systems. Many usage patterns where the devices have limited memory require the data to be Tiled and then pipelined through the device. Whilst the OpenCL primitives make this pipelining possible, the pipelining code can be a significant part of the development effort when the actual value added is the algorithm implementation itself. The TTL library offloads the tiling and pipelining boilerplate code allowing the programmer to focus on algorithm development. The presentation will present the Tensor and Tiling library. The library today is temporarily hosted at https://gitlab.khronos.org/opencl/ttl and, by the time of IWOCL 2023, will be finally hosted at https://github.com/KhronosGroup
TTL简介,一个开源的OpenCL张量和平铺库
OpenCL有一个图像数据类型来表示用于在设备内核中处理的图像数据的多维数组。在为图像处理提供强大功能的同时,它们针对gpu的功能而设计,并提供封闭的不透明功能和数据格式。这个演讲介绍了一个最近发布的开源库,“张量和平铺库”。为了支持非gpu的多维数据,已经创建了TTL。与GPU Image类型一样,TTL张量类型具有描述其形状、布局和底层数据的内置属性。该库提供了读取、编写、推理相关张量的相对定位的方法,以及超出张量范围的数据属性。OpenCL C提供了内置于该语言中的异步数据复制功能,允许在主机和设备内存系统之间传输数据。在设备内存有限的许多使用模式中,需要将数据平铺,然后通过设备进行流水线处理。虽然OpenCL原语使这种流水线成为可能,但当实际增加的价值是算法实现本身时,流水线代码可能是开发工作的重要组成部分。TTL库卸载了平铺和流水线样板代码,允许程序员专注于算法开发。演示将展示张量和平铺库。该图书馆目前暂时托管在https://gitlab.khronos.org/opencl/ttl上,到IWOCL 2023年,最终将托管在https://github.com/KhronosGroup上
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信