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

Error while mmapping for a binary constants file for zOS. #2992

Open
christopherlmunoz opened this issue Oct 30, 2024 · 0 comments
Open

Error while mmapping for a binary constants file for zOS. #2992

christopherlmunoz opened this issue Oct 30, 2024 · 0 comments

Comments

@christopherlmunoz
Copy link

After calling a model that has its constants stored in a binary file on zOS, it may successfully open the file but fails to map it. In this case, the model is ~400MB.

bash-5.2$ client/bin/modelzoo --lib bertsquad-10.so --file bertsquad-10.tests --validate -m VERBOSE --fc-parms 0.01,0.021655,1,10

Iteration 0 dataset 0: Reading
gen_data_set_lists() loading 4 input tensor(s):
gen_next_tensor() processing tensor with shape ( 1 ) totaling 1 elements of type ONNX_TYPE_INT64
gen_next_tensor() processing tensor with shape ( 1 256 ) totaling 256 elements of type ONNX_TYPE_INT64
gen_next_tensor() processing tensor with shape ( 1 256 ) totaling 256 elements of type ONNX_TYPE_INT64
gen_next_tensor() processing tensor with shape ( 1 256 ) totaling 256 elements of type ONNX_TYPE_INT64
gen_data_set_lists() loading 3 expected output tensor(s):
gen_next_tensor() processing tensor with shape ( 1 256 ) totaling 256 elements of type ONNX_TYPE_FLOAT
gen_next_tensor() processing tensor with shape ( 1 256 ) totaling 256 elements of type ONNX_TYPE_FLOAT
gen_next_tensor() processing tensor with shape ( 1 ) totaling 1 elements of type ONNX_TYPE_INT64
Iteration 0 dataset 0: Running
Error while mmapping bertsquad-10.constants.bin
Error while mmapping bertsquad-10.constants.bin
CEE3204S The system detected a protection exception (System Completion Code=0C4).
         From entry point main_graph_bertsquad-10 at compile unit offset +000000002338F8BE at entry offset +000000000000340E at address 000000002338F8BE.
SIGSEGV
#ifdef __MVS__
    void *tempAddr = mmap(0, size, PROT_READ, __MAP_MEGA, fd, 0);
#else
    void *tempAddr = mmap(0, size, PROT_READ, MAP_SHARED, fd, 0);
#endif

Please let me know if more info is needed. Thanks fyi @tungld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant