Hi,
I've failed to add compiler flags( the standard CFLAGS="-ta=tesla:managed") three times for using PGI Unified BinaryTM technology(like CUDA unified memory).
(1) Using the low-level installer of course.
(2) Using the automatic installer.(revise and re-run the configure options from the top of the config.log file)
(3) Modify config/cs_auto_flags.sh in the code sources ( I delete all compiler types other than pgcc. after all, I revise conditional statements to simple statements)
I put 2 log in attachment. I want to know the technology to see if it works. (I just want to use unified memory of SpMV products)
best regards,
Jackie
CS & PGI compiler
CS & PGI compiler
- Attachments
-
- error2.log
- Modify config/cs_auto_flags.sh in the code sources
- (103.31 KiB) Downloaded 627 times
-
- error1.log
- assignment CFLAGS="-ta=tesla:managed" for default
- (901.55 KiB) Downloaded 610 times
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: CS & PGI compiler
Hello,
You can also use the --disable-auto-flags configure option followed by you choice of CFLAGS, ... for quicker tests.
In any case, what seems to be missing is a Fortran compiler option to use the C preprocessor to handle #define options and such. For versions of the PGI compilers we used some years ago, it was "-Mpreprocess", so I recommend testing if last option is still valid by adding it tou your "FCFLAGS" options.
Regards,
Yvan
You can also use the --disable-auto-flags configure option followed by you choice of CFLAGS, ... for quicker tests.
In any case, what seems to be missing is a Fortran compiler option to use the C preprocessor to handle #define options and such. For versions of the PGI compilers we used some years ago, it was "-Mpreprocess", so I recommend testing if last option is still valid by adding it tou your "FCFLAGS" options.
Regards,
Yvan
Re: CS & PGI compiler
Thank you Yvan for the question.
If I want to get the PGI Compiler Feedback, which file and location should I look for?
best
Jackie
If I want to get the PGI Compiler Feedback, which file and location should I look for?
best
Jackie
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: CS & PGI compiler
Hello,
I'm not sure I understand you question. You can edit config/cs_auto_flags.sh to edit the default PGI compiler flags (search for PGI in that file) before running "configure", but otherwise, you need to redirect the output of "make" to a file and check that.
Regards,
Yvan
I'm not sure I understand you question. You can edit config/cs_auto_flags.sh to edit the default PGI compiler flags (search for PGI in that file) before running "configure", but otherwise, you need to redirect the output of "make" to a file and check that.
Regards,
Yvan
Re: CS & PGI compiler
Hi,
Thanks a lot!
I've already edited config/cs_auto_flags.sh to edit the default PGI compiler flags, including "added to $CFLAGS for profiling". So I want to get the information about PGI Compiler Feedback after compiling "the Code".
best regards,
Jackie
Thanks a lot!
I've already edited config/cs_auto_flags.sh to edit the default PGI compiler flags, including "added to $CFLAGS for profiling". So I want to get the information about PGI Compiler Feedback after compiling "the Code".
best regards,
Jackie
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: CS & PGI compiler
Hello,
I have not used a PGI compiler for quite a few years, so I can't help you here. You'll probably need to look at the PGI compiler documentation.
Regards,
Yvan
I have not used a PGI compiler for quite a few years, so I can't help you here. You'll probably need to look at the PGI compiler documentation.
Regards,
Yvan