I tried to use clock function in device code and get the error
1>### Assertion failure at line 1198 of …/…/be/cg/NVISA/exp_loadstore.cxx:
1>### Compiler Error in file C:/Users/Lev/AppData/Local/Temp/tmpxft_00000a4c_00000000-9_file.cpp3.i during Code_Expansion phase:
1>### unrecognized extern symbol: clock
1>nvopencc ERROR: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin/…/open64/lib//be.exe returned non-zero status 1
This kind of error message indicates that there is some problem internal to the compiler (in addition to the problem in the source code, which the compiler diagnosed correctly). It would be helpful if you could post a self-contained repro case so I can followup with the compiler team. Thanks!