Skip to content

Solution5 - Can't compile #2

Description

@filippo82

Dear Rob,

I can't compile the code in Solution5. I get this error:

pgcc -I. -I/opt/nvidia/cudatoolkit8.0/8.0.54_2.2.8_ga620558-2.1/include -DFP32 -fast -Minline -Minfo=all -acc -ta=multicore -tp=haswell -o 3Dwave_acc_multicore.out 3Dwave_acc_multicore.c -L/opt/nvidia/cudatoolkit8.0/8.0.54_2.2.8_ga620558-2.1/lib64 -lcudart
PGC-F-0249-#error -- --- !!! UNKNOWN COMPILER: please provide a CUDA compatible definition for 'align' !!! --- (/opt/nvidia/cudatoolkit8.0/8.0.54_2.2.8_ga620558-2.1/include/host_defines.h: 133)
PGC/x86-64-Extractor Linux 17.4-0: aborted
Makefile:47: recipe for target 'build' failed
make: *** [build] Error 2

I'm using CUDA8.0 and PGI compiler (Community Edition) 17.4.

After some googling, I've found this post that may be related to the issue: https://www.pgroup.com/userforum/viewtopic.php?t=3624&postdays=0&postorder=asc&start=0. However, I wasn't able to fix it.

Would it be possible to know version of CUDA and PGI Compiler used by the author of Chapter 09?

Thanks a lot.
Best regards,
-Filippo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions