cudaDriverGetVersion not found

Im using version 2.2 of the Toolkit, but cannot seem to find cudaDriverGetVersion(), I get the compile time error

error: ‘cudaDriverGetVersion’ was not declared in this scope

Any tips?

If u r compiling a .cpp file, do #include<cuda_runtime_api.h>