Software Archive
Read-only legacy content
17061 Discussions

Intel Phi compiling cl file occurs Stack dump: Segmentation fault (core dumped) Y86 DAG->DAG and Function Pass Manager

Roysky_l_
Beginner
475 Views

hi,everyone

when i compile the cl file on Intel Many Integrated Core and linux system,i gets the below errors

Stack dump:
0.      Running pass 'Function Pass Manager' on module 'Program'.
1.      Running pass 'Y86 DAG->DAG Instruction Selection' on function '@test_kernel'
Segmentation fault (core dumped)

who can get me some suggestions? Thank you!

here is my code of OpenCL kernel

__kernel void test_kernel(__global Byte64 *dicPwd)
{
 unsigned int tid = get_global_id(0),tidloop=0;
 unsigned int  g_TotalThread = get_global_size(0);
 int pwdlen=0;
 

 Byte64 data=dicPwd[tid];
 unsigned char *pUniPwd = data.c;
 pwdlen=data.c[63];

 unsigned char keyCopy[8];
 for (unsigned int i = 0; i < 8; i++)
  keyCopy = i;

 for (unsigned int i = 0; i < pwdlen; i++)
 {
  unsigned char tmp0 =keyCopy[i % 7];
  unsigned char tmp1 = tmp0 ^pUniPwd;
  unsigned char tmp2 = (unsigned char)(tmp1 >> 1);
  unsigned char tmp3 =(unsigned char) (tmp1 << 7);
  keyCopy[i % 7] = (unsigned char)(tmp2 + tmp3);
 }
}


 

0 Kudos
1 Reply
Loc_N_Intel
Employee
475 Views

Hi Roysky,

Would you like to share your source code on the host so I can reproduce the problem? Thank you.

0 Kudos
Reply