- Notifications
You must be signed in to change notification settings - Fork 5.9k
[fix][dataloader] use file descripor instead of file system #62696
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
Conversation
| 你的PR提交成功,感谢你对开源项目的贡献! |
b660bf5 to 0d9bf1d Compare 0d9bf1d to efb137d Compare | Sorry to inform you that efb137d's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
paddle/common/flags.cc Outdated
| * Note: . If True, mmap_allocator will use file descripor to open shared memory | ||
| * operation. | ||
| */ | ||
| PHI_DEFINE_EXPORTED_bool(use_file_descripor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it be dataloader_use_file_descriptor.
| # Empty tensors have nothing be mapped. | ||
| return (_rebuild_lodtensor_empty, (type(lodtensor),)) | ||
| inmeta = False | ||
| if os.environ.get('FLAGS_use_file_descripor', True) in [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it be core.globals()["FLAGS_use_file_descripor"]. The core is paddle.base.core.
| inmeta | ||
| ) # ipc_name, fd, size, type_idx, dims, lod | ||
| | ||
| if os.environ.get('FLAGS_use_file_descripor', True) in [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it be core.globals()["FLAGS_use_file_descripor"]. The core is paddle.base.core.
… fix_data_loader
… fix_data_loader
1ab0976 to 908910b Compare
XieYunshen left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
单测超时时间设置
lanxianghit left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for Flags
…ddle#62696) * [fix][dataloader] use file descripor instead of file system * [fix][dataloader] use core.globals instend of os.environ * [fix][dataloader] add test dataloader * [fix][dataloader] set FLAGS_dataloader_use_file_descriptor on child process
PR Category
User Experience
PR Types
Bug fixes
Description
PCard-81023
use file descripor instead of file system in dataloader.