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

atoi typecasting bug #20

Open
Ashutosh-Londhe opened this issue Feb 24, 2020 · 3 comments
Open

atoi typecasting bug #20

Ashutosh-Londhe opened this issue Feb 24, 2020 · 3 comments

Comments

@Ashutosh-Londhe
Copy link

Ashutosh-Londhe commented Feb 24, 2020

"atoi" function is used to get command line value for "TOTAL_KEYS" or "NUM_KEYS_PER_PER" and then it is type cast to "uint64_t", problem with "atoi" is that it cannot convert value more than "2^31" it will truncate that value. Instead "strtoull" can be used.

Also please comment whether the application can scale beyond "2^31" KEYS_PER_PE for weak_scaling experiment or not, considering sufficient memory is available.

Particularly for SHMEM version where symmetric heap memory is limited to 2^28 elements, can increasing this symmetric heap memory will solve the scaling limitation and is there any limitation of memory to be allocated on symmetric heap??

@jdinan
Copy link
Collaborator

jdinan commented Feb 25, 2020

This is a good change. Would you be willing to post a PR for it? Can you elaborate on the symmetric heap size limitation you ran into?

@Ashutosh-Londhe
Copy link
Author

Hello James,
I have created the pull request.
For the SHMEM version, i am trying to run the application for more than 2^32 problem size per PE. And as the output space of 2^28 KEY_TYPE element is allocated on symmetric heap the application will not run for more than 2^28 problem size per PE. So changing the value as per the problem size and experiment (strong or weak) is required along with setting value of SMA_SYMMETRIC_HEAP environment variable. Also data type of some variables like "local_bucket_sizes" and "local_bucket_offset" also need to be changed.

@jdinan
Copy link
Collaborator

jdinan commented Feb 27, 2020

Got it -- happy to accept any additional patches needed to make this work.

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

2 participants