i’m looking for a cuda and/or ptx instruction or set thereof i could put in device code so that i could get the gpu temperature (out to a few decimal places) and/or some timer or clock (such as for performance metrics) to use as a source of entropy for a random number generator. anyone know how to do this? i’m not talking about some utility or software. i’m looking for device resident source code for a CUDA program.
i only need a few bits of entropy, total for the whole device. but i need it in a few clock cycles. that’s why i’m hoping maybe there’s a special register i can read or something.