Accelerating Pattern Matching with OpenCL by Fraser Adams
Author:Fraser Adams [Adams, Fraser]
Language: eng
Format: azw3
Publisher: Fraser Adams
Published: 2017-09-30T04:00:00+00:00
queue.enqueueWriteBuffer(inputBuffer, CL_TRUE, 0, size, input.data()); /** * The kernel processes the input characters in groups of * four (OpenCL int), so we therefore need to calculate * our global work size in terms of how many OpenCL * integers it comprises. The computed global work size is * then rounded up to a multiple of the local work-group * size (thread block size). */ // Number of OpenCL integers that would completely // contain the input bytes. const cl_int n = (size + sizeof(cl_int) - 1)/sizeof(cl_int); // Given n round up if necessary to a multiple // of WORK_GROUP_SIZE. const auto r = n % WORK_GROUP_SIZE; const auto global = (r == 0) ? n : n + WORK_GROUP_SIZE - r; const cl_int initialState = dictionary->initialState; pfacKernel.setArg(0, initialTransitions); pfacKernel.setArg(1, hashRow); pfacKernel.setArg(2, hashVal); pfacKernel.setArg(3, initialState); pfacKernel.setArg(4, inputBuffer); pfacKernel.setArg(5, outputBuffer); pfacKernel.setArg(6, size); pfacKernel.setArg(7, n); queue.enqueueNDRangeKernel(pfacKernel, cl::NullRange, cl::NDRange(global), cl::NDRange(WORK_GROUP_SIZE)); queue.enqueueReadBuffer(outputBuffer, CL_TRUE, 0, size*sizeof(cl_int), output.data());
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8297)
Test-Driven Development with Java by Alan Mellor(6713)
Data Augmentation with Python by Duc Haba(6624)
Principles of Data Fabric by Sonia Mezzetta(6377)
Learn Blender Simulations the Right Way by Stephen Pearson(6273)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6141)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5539)
Big Data Analysis with Python by Ivan Marin(5359)
The Infinite Retina by Robert Scoble Irena Cronin(5234)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5144)
Pretrain Vision and Large Language Models in Python by Emily Webber(4320)
Infrastructure as Code for Beginners by Russ McKendrick(4080)
Functional Programming in JavaScript by Mantyla Dan(4038)
The Age of Surveillance Capitalism by Shoshana Zuboff(3948)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3795)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3599)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3572)
