词条 | Halide (programming language) |
释义 |
| name = Halide | logo = | caption = | file_ext = | paradigm = functional, parallel | year = 2012 | designer = Jonathan Ragan-Kelley and Andrew Adams | developer = MIT, (with help from Stanford and Adobe) | latest_release_version = | latest_release_date = | latest_test_version = | latest_test_date = | typing = static | implementations = | dialects = | influenced_by = | influenced = | programming_language = C++ | operating_system = Mac OS X (10.6 through 10.8), mainstream Linux distributions, Windows | license = | website = http://halide-lang.org/ | wikibooks = }} Halide is a computer programming language designed for writing digital image processing code that takes advantage of memory locality, vectorized computation and multi-core CPUs and GPUs.[1] Halide is implemented as an internal domain-specific language (DSL) in C++. LanguageThe main innovation Halide brings is the separation of the algorithm being implemented from its execution schedule, i.e. code specifying the loop nesting, parallelization, loop unrolling and vector instruction. These two are usually interleaved together and experimenting with changing the schedule requires the programmer to rewrite large portions of the algorithm with every change. With Halide, changing the schedule does not require any changes to the algorithm and this allows the programmer to experiment with scheduling and finding the most efficient one. Sample source codeThe following function defines and sets the schedule for a 3×3 box filter defined as a series of two 3×1 passes: UseGoogle used Halide and TensorFlow for its Pixel 2 Pixel Visual Core.[2] See also
References1. ^{{cite web |url=http://www.i-programmer.info/news/192-photography-a-imaging/4588-halide-new-language-for-image-processing.html | title=Halide - New Language For Image Processing |year=2012 |accessdate=20 September 2013}} 2. ^{{cite web|url=https://www.theregister.co.uk/2017/10/22/ai_roundup/|title=Google and Intel cook AI chips, neural network exchanges – and more|publisher=Situation Publishing|website=The Register}} External links
3 : Image processing|Functional languages|Parallel computing |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。