# Printf() in device program

**URL:** https://forums.developer.nvidia.com/t/printf-in-device-program/266282
**Category:** OptiX
**Created:** [September 13, 2023, 1:38pm UTC](https://forums.developer.nvidia.com/t/printf-in-device-program/266282 "2023-09-13T13:38:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![whix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/whix/32/366579_2.png) [@whix](https://forums.developer.nvidia.com/u/whix)
#### Post date: [September 13, 2023, 1:38pm UTC](https://forums.developer.nvidia.com/t/printf-in-device-program/266282/1 "2023-09-13T13:38:48Z")

</div>

Hello! I have a `printf()` statement in ` __raygen__ draw_solid_color()` device program, if I use Optix7.5, I can get the output result in terminal, but if I use Optix7.7, I can’t, why? Thank you!

---

<div class="post-metadata">

### Author: ![droettger](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/droettger/32/14043_2.png) [@droettger](https://forums.developer.nvidia.com/u/droettger)
#### Post date: [September 13, 2023, 2:33pm UTC](https://forums.developer.nvidia.com/t/printf-in-device-program/266282/2 "2023-09-13T14:33:12Z")

</div>

There was an issue with printf() in R530 drivers which affects the OptiX SDK 7.7.0 and newer versions which is fixed in R535 drivers.  
Please try updating your display drivers if you’re still running an R530 version.

Please read this thread and the linked one inside that for details:  
[https://forums.developer.nvidia.com/t/optix-8-0-optix-device-property-shader-execution-reordering-returns-0/263025/6](https://forums.developer.nvidia.com/t/optix-8-0-optix-device-property-shader-execution-reordering-returns-0/263025/6)
