cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nibal
Challenger

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.

0 Likes
1 Solution

Since I reinstalled SDK-3.0, I cannot reproduce this problem, because kernel refuses to build. Closing this thread, until clBuildProgram is solved. Will reopen it if it still exists after that.

View solution in original post

0 Likes
2 Replies
dipak
Big Boss

Could you please provide a test-case that manifests the above problem?

Also, please let us know your catalyst version.

Regards,

0 Likes

Since I reinstalled SDK-3.0, I cannot reproduce this problem, because kernel refuses to build. Closing this thread, until clBuildProgram is solved. Will reopen it if it still exists after that.

0 Likes