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

'make gpu' results in error #39

Open
AnthonySandhar-Cruz opened this issue May 28, 2024 · 0 comments
Open

'make gpu' results in error #39

AnthonySandhar-Cruz opened this issue May 28, 2024 · 0 comments

Comments

@AnthonySandhar-Cruz
Copy link

AnthonySandhar-Cruz commented May 28, 2024

I am trying to compile the CUDA PPC code on a cluster. When running 'make gpu' in the PPC_CUDA directory, I get the following error:

$ make gpu
nvcc ppc.cu -Xptxas=-v -arch=sm_50 -O2 --use_fast_math --compiler-options=-O2,--fast-math -o ppc 2>&1 | grep -v assuming
pro.cu(58): error: identifier "int_as_float" is undefined
    return int_as_float(tmp|0x3f800000)-1.0f;
           ^

1 error detected in the compilation of "ppc.cu".

int_as_float is used outside the scope of the #ifdef XCPU, but it seems like 'pro.cu' is included after #define XCPU in 'ppc.cu', so I don't see why there should be any errors. Adding #define XCPU to the top of pro.cu introduces more errors.

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