rmfarber / ParallelProgrammingWithOpenACC

Example codes from the book Parallel Programming With OpenACC
82 stars 35 forks source link

Solution5 - Can't compile #2

Open filippo82 opened 7 years ago

filippo82 commented 7 years ago

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

rmfarber commented 7 years ago

Hi Broggini,

It looks like an install incompatibility. I cannot open the link you provided. However, I contacted the chapter author. I also suggest contacting PGI.

Rob

From: Filippo Broggini [mailto:notifications@github.com] Sent: Friday, September 01, 2017 8:14 AM To: rmfarber/ParallelProgrammingWithOpenACC ParallelProgrammingWithOpenACC@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [rmfarber/ParallelProgrammingWithOpenACC] Solution5 - Can't compile (#2)

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rmfarber/ParallelProgrammingWithOpenACC/issues/2 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEdU0eJ0hkcKO05Ry0rELPFD-peBpGRqks5seB83gaJpZM4PKSFU . https://github.com/notifications/beacon/AEdU0fNQLs-NfQuFH8SVwOOnU0VXrzQ9ks5seB83gaJpZM4PKSFU.gif

filippo82 commented 7 years ago

Dear Rob,

thanks a lot for your reply. It would be great if the author will let you know about the compiler and CUDA versions that he had used.

I'm an OpenACC beginner and I am enjoying the book so far. It is really well done. I work at ETH in Zurich, Switzerland and we are in touch with the local NVIDIA office to possibly organise an OpenACC workshop.

FYI, I've attached the pdf of the post in the PGI forum that you weren't able to open.

Thanks again. Best wishes, -Filippo

On Fri, Sep 1, 2017 at 10:39 PM, rmfarber notifications@github.com wrote:

Hi Broggini,

It looks like an install incompatibility. I cannot open the link you provided. However, I contacted the chapter author. I also suggest contacting PGI.

Rob

From: Filippo Broggini [mailto:notifications@github.com] Sent: Friday, September 01, 2017 8:14 AM To: rmfarber/ParallelProgrammingWithOpenACC <ParallelProgrammingWithOpenAC C@noreply.github.com> Cc: Subscribed subscribed@noreply.github.com Subject: [rmfarber/ParallelProgrammingWithOpenACC] Solution5 - Can't compile (#2)

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/rmfarber/ParallelProgrammingWithOpenACC/issues/2> , or mute the thread https://github.com/notifications/unsubscribe- auth/AEdU0eJ0hkcKO05Ry0rELPFD-peBpGRqks5seB83gaJpZM4PKSFU . < https://github.com/notifications/beacon/AEdU0fNQLs- NfQuFH8SVwOOnU0VXrzQ9ks5seB83gaJpZM4PKSFU.gif>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rmfarber/ParallelProgrammingWithOpenACC/issues/2#issuecomment-326678896, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVg5CbxSJzwUqFD28KMUJ7M7w9aeDMkks5seGuDgaJpZM4PKSFU .

--

-- Dr. Filippo Broggini-- Exploration and Environmental Geophysics (EEG)Department of Earth SciencesInstitute of GeophysicsETH Zurich

NO H 47Sonneggstrasse 58092 ZürichSwitzerlandEEG website: http://www.eeg.ethz.ch/ http://www.eeg.ethz.ch/E-mail: filippo.broggini@erdw.ethz.ch filippo.broggini@erdw.ethz.ch