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

FT running problem on classD #5

Open
Ed1sonChen opened this issue Dec 16, 2022 · 1 comment
Open

FT running problem on classD #5

Ed1sonChen opened this issue Dec 16, 2022 · 1 comment

Comments

@Ed1sonChen
Copy link

I built and ran the FT program for the class D problem size, but the verification fails. The verification routine is failing because an overflow error is occurring with class D (int type is not large enough for this class). Would you please give me some help?

@gabriellaraujo1903
Copy link
Member

Hello. Thank you for using our NPB version and reporting this issue.

We have recently solved a similar issue in the IS benchmark (concerning the class D and overflow with int numbers).

A way to solve this is creating a macro that uses long type instead of int type when running the class D or larger.

A macro should be something like this:

#if CLASS == 'D'
typedef long INT_TYPE;
#else
typedef int INT_TYPE;
#endif

After that, you can replace the int type in the source code with that macro:

// using int type
int number;
// using the macro for class D
INT_TYPE number;

We will provide this update in the FT benchmark as soon as possible.

Additionally, since class D consumes a lot of memory, you should verify if your GPU has enough memory.

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