Skip to content

Conversation

@xysheng-baidu
Copy link
Contributor

@xysheng-baidu xysheng-baidu commented Mar 13, 2024

PR Category

User Experience

PR Types

Bug fixes

Description

PCard-81023
use file descripor instead of file system in dataloader.

@paddle-bot
Copy link

paddle-bot bot commented Mar 13, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@xysheng-baidu xysheng-baidu force-pushed the fix_data_loader branch 2 times, most recently from b660bf5 to 0d9bf1d Compare March 19, 2024 04:19
@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Mar 27, 2024

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.

* Note: . If True, mmap_allocator will use file descripor to open shared memory
* operation.
*/
PHI_DEFINE_EXPORTED_bool(use_file_descripor,
Copy link
Collaborator

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 [
Copy link
Collaborator

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 [
Copy link
Collaborator

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.

@xysheng-baidu xysheng-baidu force-pushed the fix_data_loader branch 2 times, most recently from 1ab0976 to 908910b Compare April 1, 2024 08:30
Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
单测超时时间设置

Copy link
Contributor

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for Flags

@sneaxiy sneaxiy merged commit c5f73f6 into PaddlePaddle:develop Apr 2, 2024
xysheng-baidu added a commit to xysheng-baidu/Paddle that referenced this pull request Apr 2, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants