2 Replies Latest reply on Oct 29, 2015 6:05 AM by nibal

    printf problem


      I use printf in my program to see local float variables. After 1 cycle of data, it hangs. It isn't killed by normal signals, and if I kill it with -KILL (9) it corrupts my display, at which point it crashes my PC.

      If I comment out the printf statement, it runs normally through all 300 cycles.

      Offending code:


      printf("gid = %lu, gp = %p, avg[0] = %f, avg[1] = %f, avg[2] = %f, avg[3] = %f\n", f->me, gp, f->avg[0], f->avg[1], f->avg[2], f->avg[3]);


      I use sdk 3.0 in Ubuntu 14.04 and running my kernel from my R9 270 video card.