GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cpp.libhunt.com — nvParse Alternatives - C++ CSV | LibHunt nvParseFast, gpu-based CSV parser
Take the C++ Developer Survey
- About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email.
Take the survey »
Popularity
4.0
Stable
Activity
0.0
Stable
Stars
564
Watchers
23
Forks
27
Last Commit
DescriptionParsing delimiter-separated files is a common task in data processing. The regular way of extracting the columns from a text file is to use strtok function.
Programming language: Cuda
License: Apache License 2.0
nvParse alternatives and similar libraries
Based on the "CSV" category.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
Do you think we are missing an alternative of nvParse or a related project? READMEnvParseParsing CSV files with GPU Parsing delimiter-separated files is a common task in data processing. The regular way of extracting the columns from a text file is to use strtok function :
However this method of parsing is CPU bound because
This is how the same task can be done using a GPU :
The first line counts the number of lines in a buffer (assuming that file is read into memory and copied to gpu buffer d_readbuff). The second line creates a vector in gpu memory that will hold the positions of new line characters. The last line compares the characters in a buffer to new line character and, if a match is found, copies the position of the character to dev_pos vector. Now that we know the starting positions of every line in a buffer, we can launch a gpu procedure that will parse the lines using several thousands gpu cores :
As a result we get the needed columns in separate arrays in gpu memory and can copy them to host memory. Or convert them to binary values using relevant gpu procedures :
Benchmarks ! Hardware : PC with one Intel i3-4130, 16GB of RAM, one 2TB hard drive and GTX Titan File : 750MB lineitem.tbl text file (6001215 lines) Parsing 1 field using CPU :
Parsing 11 fields using hand-written program with strtok : (no threads, no memory-mapped file) 14.5s Parsing 11 fields using GPU :
0.77s And the actual gpu parsing part is done in just 0.25 seconds. P.S. Thanks to Nicolas Guillemot for suggestion on memory-mapping files. Do not miss the trending, libraries, news and articles with our weekly report.
Spin The Wheel Of Names
for a cryptographically secure random name picker.
Schedule a when to meet poll. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |