Questions tagged [pgi]

The Portland Group (PGI) produces compilers (Fortran, C & C++) for high-performance computers. They also provide Fortran compilers with GPU support (CUDA Fortran as well as an implementation of OpenACC).

See also PGI Documentation.

160 questions
8
votes
3 answers

Detect compiler with #ifdef

I'm trying to build a small code that works across multiple platforms and compilers. I use assertions, most of which can be turned off, but when compiling with PGI's pgicpp using -mp for OpenMP support, it automatically uses the --no_exceptions…
Seth Johnson
  • 14,762
  • 6
  • 59
  • 85
6
votes
2 answers

Are derived types containing allocatable arrays supported in any existing OpenACC compilers?

Are there any OpenAcc compilers that support the copying of derived types containing allocatable arrays to/from the GPU and their use in accelerated code? The OpenACC spec (v2.0) states this is possible, but I'm unable to find it implemented in a…
mjm26
  • 307
  • 1
  • 2
  • 12
5
votes
1 answer

Error installing pgi package in python 3.8

I am new to programming and for a school project, I need to install pgi 0.0.11.2 package from PyPi. Whenever I try to install the package I get the following error: Collecting pgi Using cached pgi-0.0.11.2.tar.gz (239 kB) Preparing metadata…
4
votes
1 answer

status of getting PGI compiler

I used to freely download the community version of the PGI compiler, which for however many years seemed to be one version older than the professional version. As the professional version updated to a new version, that old version became the freely…
ron
  • 967
  • 6
  • 23
4
votes
1 answer

Problem compiling C/Fortran code together with pgi on windows: "main already defined"

Below is a toy example of the C/Fortran files I want to compile together. The C file void testfunc(); int main(void) { testfunc(); } The Fortran file subroutine testfunc() bind (C, name = "testfunc") write(*,*) "Hello World!" end…
DJames
  • 571
  • 3
  • 17
4
votes
2 answers

Use FORTRAN linker in cmake mixed language project

When CMake is used for a mixed language project (C/C++ and FORTRAN), the C++ compiler is called to link the executable. Is there an easy way to call the FORTRAN compiler for the linking step. project(Serialbox_Fortran_Perturbation_Example CXX…
Valentin Clement
  • 241
  • 3
  • 13
4
votes
2 answers

Fortran : Initialize all variables to a specific default value

I am working on a ~40 years old Fortran spaghetti code with lots of variables that are implicitly declared. So there is not a simple way to even know what variables exist in the code in order to initialize their values. Now, is there a way to tell…
Scientist
  • 1,767
  • 2
  • 12
  • 20
3
votes
0 answers

PGI compilation problem in Fortran: deferred procedure creates segmentation fault

I am testing the PGI Fortran 19.10 compiler. And I get a segmentation fault after compilation with PGI when I run the file named test.f90 ; while when I compile and run with gfortran or ifort I get no problem. the filetest.f90: MODULE modu IMPLICIT…
R. N
  • 707
  • 11
  • 31
3
votes
0 answers

PGI compiler creates an error with a fortran type-bound procedures

I am working on a Fortran code. And I have to deal with many different type of output file. So to manage all of them, I use type objects. Until now, I have compiled my code with gfortran on linux and windows (and ifort on linux) ; and it works as…
R. N
  • 707
  • 11
  • 31
3
votes
1 answer

Loop carried dependence of `->` prevents parallelization

I have a Model class that holds data for a model and runs several functions on that data. The details are probably not too important except that it has the following design: Variables are stored in the class namespace. Variables are initialized and…
Richard
  • 56,349
  • 34
  • 180
  • 251
3
votes
1 answer

What should COMPILER_OPTIONS() return in Fortran?

Fortran 2008 added a new procedure called COMPILER_OPTIONS() which according to GNU documentation should return a string with the options used for compiling the file. According to Fortran 2003 status wiki, almost all compilers including GNU and PGI…
Oak Bytes
  • 4,649
  • 4
  • 36
  • 53
3
votes
0 answers

Fortran/OpenMP comparison on 2 platforms (GCC and PGI compilers). Unexpected execution times

I compiled (with GCC and PGI compilers) and run a small Fortran/OpenMP program on two different platforms (Haswell- and Skylake-based), just to get a feeling of the difference of the performance. I do not know how to interpret the results - they are…
undy
  • 93
  • 7
3
votes
1 answer

Manual Deep Copy to Device in C

I am attempting to parallelize a program that does some image processing with openACC. As a part of this processing I have a custom structure defined similar to: typedef struct { RGB *image; double property; } Deep; Which I am accessing within…
challett
  • 906
  • 6
  • 16
3
votes
1 answer

Random number generator in PGI Fortran not so random

The following code just generates a simple triple of random numbers: program testrand integer, parameter :: nz = 160, nf = 160, nlt = 90 real :: tmpidx(3) integer :: idxarr(3), idx1, idx2, idx3, seed_size, ticks integer, allocatable ::…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
3
votes
2 answers

Compiler does not support #pragma once

I have a compiler (PGI) that does not support #pragma once but the library (thrust) I would like to include uses them. Is there a workaround for this problem?
user1928546
  • 143
  • 1
  • 1
  • 5
1
2 3
10 11