Great! Yeah, I was using the bin2c command line without padd or type because the defaults are fine:
bin2c.exe --static --const --name raygen raygen.optixir
The default alignment is 1 which doesn’t need any padding for char data. Though if it post-added a null char at the end to make that array data a C string, which wouldn’t hurt for the PTX input case but isn’t required due to the explicit size argument in optixModuleCreate, it’s definitely incorrect for binary data.