diff --git a/doc/design/cpp_data_feeding.md b/doc/design/cpp_data_feeding.md index 0d2b571d1e25c380a5e0068d9bfd2e466e9a3b40..6f7713d94929902b84787ecc264d5c86883fb550 100644 --- a/doc/design/cpp_data_feeding.md +++ b/doc/design/cpp_data_feeding.md @@ -6,7 +6,7 @@ In this document, we show the fundamental design of a C++ data feeding process, ## Overview -![](images/readers.pdf) +![](images/readers.png) ## Reader @@ -85,7 +85,7 @@ All `FileReader` binds with a single file and are single-threaded. However, some So `MultipleReader` is introduced. It is also derived from `ReaderBase`. A `MultipleReader` holds several prefetching `FileReaders` and these readers run concurrently. Another pivotal part of a `MultipleReader` is a buffer channel. The channel collects data yield by all prefetching readers and makes subsequent OPs or decorated readers be able to fetch data without concerning about multiple readers scheduling. -![](images/multiple_reader.pdf) +![](images/multiple_reader.png) This graph shows how a `MultipleReader` works with three prefetching file readers and two GPUs. There is a queue of files which are going to be read. Each time when a prefetching file reader is free(complete reading from one file), it fetches a new file from the queue. Each prefetching file reader runs in a separated prefetch thread and dumps their outputs to the same channel. diff --git a/doc/design/images/multiple_reader.pdf b/doc/design/images/multiple_reader.pdf deleted file mode 100644 index 61d01617cbb30505fe3da4136f50d3ee13acd61d..0000000000000000000000000000000000000000 Binary files a/doc/design/images/multiple_reader.pdf and /dev/null differ diff --git a/doc/design/images/multiple_reader.png b/doc/design/images/multiple_reader.png new file mode 100644 index 0000000000000000000000000000000000000000..b22126b31db4982c13fc3a0827805e6aaf955046 Binary files /dev/null and b/doc/design/images/multiple_reader.png differ diff --git a/doc/design/images/readers.pdf b/doc/design/images/readers.pdf deleted file mode 100644 index e2c1988cbd15765cc62605b2b2a7038f2d995178..0000000000000000000000000000000000000000 Binary files a/doc/design/images/readers.pdf and /dev/null differ diff --git a/doc/design/images/readers.png b/doc/design/images/readers.png new file mode 100644 index 0000000000000000000000000000000000000000..fd59168ce16c9e2a0ef45303c28c997cfd7740be Binary files /dev/null and b/doc/design/images/readers.png differ