Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: A Prototype for Enhancing the Performance of Data loader #708

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mtmd
Copy link
Contributor

@mtmd mtmd commented Aug 4, 2021

Original Issue: #630

Summary

This pull request improves the performance of flashlight by offering a new data structure: Sample. Sample transfers the data that it contains to the GPU memory in an asynchronous fashion. The transformations are performed after the prefetch step to ensure a single CPU thread deals with GPU interactions, hence, reducing the context switching and lock acquisition overhead.
This is a WIP. Please see #631 (comment)

Test Plan (required)

bin/imgclass/fl_img_imagenet_resnet34 \
--data_dir=/path/to/your/ImageNet/folder \
--distributed_enable=false \
--exp_checkpoint_path=/tmp/test \
--logtostderr \
--fl_amp_use_mixed_precision=false \
--data_batch_size=128

…data structure: Sample. Sample transfers the data that it contains to the GPU memory in an asynchronous fashion.

Moreover, transformations are performed after prefetch to ensure a single CPU thread deals with GPU interactions, hence, reducing the context switching and lock acquisition overhead.
This is a WIP. Please see flashlight#631 (comment)
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants