PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

PGC-S-0000-Internal compiler error. support scalar members!

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Seyong



Joined: 14 Jun 2011
Posts: 4

PostPosted: Tue Jun 14, 2011 8:33 am    Post subject: PGC-S-0000-Internal compiler error. support scalar members! Reply with quote

Hello:

What the following error message means?

PGC-S-0000-Internal compiler error. support scalar members! 10 (euler3d_cpu.c: 225)

The above error occurred while processing the following code section
by PGI Accelerator Compiler Linux version 11.5:


====
void compute_step_factor(int nelr, float variables[NELR*NVAR], float areas[NELR], float step_factors[NELR])
{
int i;
float density;
struct float3S momentum;
float density_energy;
struct float3S velocity;
float speed_sqd;
float pressure;
float speed_of_sound;
#pragma acc region for parallel independent private(i, density, momentum, density_energy, velocity, speed_sqd, pressure, speed_of_sound) \
copy(variables[0:NELR*NVAR-1], areas[0:NELR-1], step_factors[0:NELR-1])
for(i = 0; i < nelr; i++)
{
density = variables[NVAR*i + VAR_DENSITY];

momentum.x = variables[NVAR*i + (VAR_MOMENTUM+0)];
momentum.y = variables[NVAR*i + (VAR_MOMENTUM+1)];
momentum.z = variables[NVAR*i + (VAR_MOMENTUM+2)];

density_energy = variables[NVAR*i + VAR_DENSITY_ENERGY];
//compute_velocity(density, &momentum, &velocity);
velocity.x = momentum.x / density;
velocity.y = momentum.y / density;
velocity.z = momentum.z / density;

//speed_sqd = compute_speed_sqd(&velocity);
speed_sqd = velocity.x*velocity.x + velocity.y*velocity.y + velocity.z*velocity.z;
//pressure = compute_pressure(density, density_energy, speed_sqd);
pressure = (((float)GAMMA)-1.0f)*(density_energy - 0.5f*density*speed_sqd);
//speed_of_sound = compute_speed_of_sound(density, pressure);
speed_of_sound = sqrtf(((float)GAMMA)*pressure/density);

// dt = float(0.5f) * sqrtf(areas[i]) / (||v|| + c).... but when we do time stepping, this later would need to be divided by the area, so we just do it all at once
step_factors[i] = 0.5f / (sqrtf(areas[i]) * (sqrtf(speed_sqd) + speed_of_sound));
}
}
Back to top
View user's profile
Seyong



Joined: 14 Jun 2011
Posts: 4

PostPosted: Tue Jun 14, 2011 10:46 am    Post subject: Reply with quote

If I unpack the struct data, the error message disappears. Does this mean that PGI Accelerator compiler does not support struct data?
(If the above code is compiled as a serial CPU version, no error occurs; the error occurs only when compiled for GPU execution.)
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6136
Location: The Portland Group Inc.

PostPosted: Tue Jun 21, 2011 2:56 pm    Post subject: Reply with quote

Hi Seyong,

The internal compiler error is an issue with the compiler. Please send an example code that reproduces the error to PGI Customer Service (trs@pgroup.com) so we can get a better understanding of the problem.

Quote:
Does this mean that PGI Accelerator compiler does not support struct data?
Basic stucts are support, however something specific to your code is causing the compiler error. Sending us a report would very much be appreciated.

Thanks,
Mat
Back to top
View user's profile
bilel



Joined: 25 Mar 2011
Posts: 3

PostPosted: Mon Jul 18, 2011 6:16 am    Post subject: PGC-S-0000-Internal compiler error. support scalar members! Reply with quote

when i need to compile flowwing code:
# pragma acc region
# pragma acc for parallel(4096)
for (i=dd;i<((int)length2+dd);i++) {


for (ii=0;ii<nb_tx2;ii++) {
rx_tmp.x = 0;
rx_tmp.y = 0;

for (j=0;j<nb_tx2;j++) {
for (l = 0;l<int>channel_length2*/23;l++) {
if ((i>=0) && (i-l)>=0) {
tx.x = tx_sig_re[j][i-l];
tx.y = tx_sig_im[j][i-l];
}
else {
tx.x =0;
tx.y =0;
}
rx_tmp.x += (tx.x * tompon[ii+(j*2)][l].x) - (tx.y * tompon[ii+(j*2)][l].y);
rx_tmp.y += (tx.y * tompon[ii+(j*2)][l].x) + (tx.x * tompon[ii+(j*2)][l].y);
} //l
} // j
// tx_sig_re[ii][i-dd] =rx_tmp.x*path_loss;
// rx_sig_im[ii][i-dd] = rx_tmp.y*path_loss;
/*
if ((ii==0)&&((i%32)==0)) {
printf("%p %p %f,%f => %e,%e\n",rx_sig_re[ii],rx_sig_im[ii],rx_tmp.x,rx_tmp.y,rx_sig_re[ii][i-dd],rx_sig_im[ii][i-dd]);
}
*/
//rx_sig_re[ii][i] = sqrt(.5)*(tx_sig_re[0][i] + tx_sig_re[1][i]);
//rx_sig_im[ii][i] = sqrt(.5)*(tx_sig_im[0][i] + tx_sig_im[1][i]);

} // ii
} // i

}

I have this message:



PGC-W-0109-Type specification of field padding64 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field rv2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field ndi2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field mcs2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field tpmi ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field rv1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field ndi1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field mcs1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field tb_swap ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field harq_pid ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field dai ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field TPC ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field rballoc ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 412)
PGC-W-0109-Type specification of field padding64 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field rv2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field ndi2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field mcs2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field tpmi ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field rv1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field ndi1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field mcs1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field tb_swap ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field harq_pid ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field dai ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field TPC ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field rballoc ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field rah ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/dci.h: 476)
PGC-W-0109-Type specification of field padding ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-W-0109-Type specification of field pmi ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-W-0109-Type specification of field diffcqi2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-W-0109-Type specification of field cqi2 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-W-0109-Type specification of field diffcqi1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-W-0109-Type specification of field cqi1 ignored (/homes/benromdh/openair4G/openair1/PHY/LTE_TRANSPORT/uci.h: 46)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-S-0000-Internal compiler error. support scalar members! 20 (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)
PGC-F-0008-Error limit exceeded (/homes/benromdh/openair4G/openair1/SIMULATION/TOOLS/multipath_channel.c: 169)


it happen just when i use ACC
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group