Questions tagged [pgcc]
14 questions
3
votes
1 answer
equivalent of pgcc "-Minfo=" flag for gcc compiler?
I just discovered the nice "-Minfo=" flag in pgcc, which outputs all the optimizations that the compiler is making.
IE:
pgcc -c -pg -O3 -Minfo=all -Minline -c -o example.o example.c
run:
55, Memory zero idiom, loop replaced by call to…

stoltzstrop
- 67
- 5
2
votes
1 answer
PGC map but no entry
Got this the other day and have no idea what it means in my android logs for a program I was debugging:
dalvikvm: PGC: map but no entry for Lcom/myapp/Uploader;.run addr=0x01ab
Should I be worried?

JPM
- 9,077
- 13
- 78
- 137
2
votes
2 answers
OpenAcc program built with C++ compiler is way slower than C built version
The code I'm working on is in C++ and is slightly complicated but the the example below shows the problem. It comes from a book by Chandrasekaran and Juckeland. If it is compiled with nvc -acc (or pgcc -acc, as the authors did) and ran, it takes a…

paww
- 23
- 3
2
votes
2 answers
C, pgcc - automatic parallelization "not countable"
I use this for loop, which I want to have parallelizide automaticaly, it is used for count of PI number:
piece=1.0/100000;
for (t=0.0; t<1.0; t=t+piece){
x=t+piece/(float)2;
if(x<=1.0){
integral=4/(1+x*x);
sum=sum+integral;
…

Waypoint
- 17,283
- 39
- 116
- 170
2
votes
2 answers
Using OpenACC to parallelize nested loops
I am very new to openacc and have just high-level knowledge so any help and explanation of what I am doing wrong would be appreciated.
I am trying to accelerate(parallelize) a not so straightforward nested loop that updates a flattened (3D to 1D)…

anupshrestha
- 236
- 5
- 19
1
vote
2 answers
openACC passing a list of struct
I have a C program to find whether 2 sets of polygons are overlapped. User input 2 sets of polygon (each set of data has several thousands polygons) and the program see which polygon in set1 overlap with which polygon in set2
I have 2 struct like…

dondonhk
- 631
- 3
- 6
- 19
1
vote
1 answer
Is dependence analysis mandatory for OpenACC compilers?
Many OpenACC tutorials assume that the compiler/accelerator will check for correctness, by automatically inspecting dependencies and ensuring that the loop is actually parallelizable. However, the OpenACC specification doesn't seem to mention…

Pericles Alves
- 11
- 1
0
votes
0 answers
PostgreSQL reports an error out of memory using EXEC SQL
I use EXEC SQL to execute a very long SQL (6000 characters) in PGC file, sometimes error SQLSTATE=[YE001] SQLERRM=[out of memory on line 400], sometimes it works fine.
Use vmstat to view memory
-------------memory----------
swpd free buff…

kldd
- 39
- 5
0
votes
1 answer
openacc error when assigning values to dynamically allocated struct member array of struct referenced by pointer
I am trying to wrap my head around combining openacc with pointers to structs containing dynamically allocated members. The code below fails with
Failing in Thread:1
call to cuStreamSynchronize returned error 700: Illegal address during kernel…
0
votes
1 answer
OpenACC: How to select an array on device from a pointer to corresponding array on host
I am trying to offload an existing C code to GPU using OpenACC. In the original CPU code, many times, it is required to select a data array based on the value of some parameter. A sample CPU code is given below:
#include
#include…

Ali Imran
- 27
- 4
0
votes
2 answers
Using openmp to distribute matrix multiplication work across multiple GPUs via openacc using C
I am trying to distribute the work of multiplying two NxN matrices across 3 nVidia GPUs using 3 OpenMP threads. (The matrix values will get large hence the long long data type.) However I am having trouble placing the #pragma acc parallel loop in…

FastGTR
- 343
- 4
- 4
0
votes
1 answer
pgcc, C - Loop not parallelized: may not be beneficial
I want help to figure out automatic parallelization with error - Loop not parallelized: may not be beneficial. I want to test this code for parallelization, but I don't know, how to make the code effective for compiler to parallelizie it.
Here is…

Waypoint
- 17,283
- 39
- 116
- 170
0
votes
0 answers
Why does mixed binary with Haskell and OpenACC get SEGV?
Why does mixed binary with Haskell and OpenACC get SEGV?
The mixed binary with GCC and OpenACC has good result:
https://github.com/master-q/test-openacc-gcc
$ make
gcc main.c -ldl
/opt/pgi/linux86-64/17.10/bin/pgcc -shared -fpic -fast -acc…

masterq
- 81
- 5
0
votes
0 answers
Compile FFTW with pgcc, undefined reference
For other software I need fftw-2.1.5 with --enable-mpi --enable-type-prefix --enable-float installed. It should be compiled with pgcc
PGCC, etc. are installed under the /home directory. For this post I have shortend it with path-to.
I…

daniel7558
- 377
- 1
- 5
- 18