cuInit(0) return No device if application is called by another application

CuInit(0) returns success when I run our application standalone.
But when this application is launched by our UI application, CuInit(0) return No_Device (error code: 100).

Can anyone tell me the cause? thx