Control texture enabling/disabling


Is it possible to control the texture cache enabling/disabling? I mean to tell the compiler not to add const restrict even if it is a read-only data.

At this moment I’m using PGI 15.7 but it would be fine also if you advice me for an older version.


Hi Cris,

We do have an internal compiler flag that can disable adding “const restrict” to read-only data, however it’s not something we’ve exposed publicly. I can’t post this flag on our forums but would be willing to have PGI Customer Support ( send it to you if you drop them a note.

Do you have a use case where disabling textured memory helps? I might be able to convince folks here to expose the flag if we have justification.

  • Mat