GNU libgomp: acc_get_current_cuda_device

Next: acc_get_current_cuda_context, Previous: acc_memcpy_from_device, Up: OpenACC Runtime Library Routines [Contents][Index]

### 5.32 `acc_get_current_cuda_device` – Get CUDA device handle.

Description

  This function returns the CUDA device handle. This handle is the same as used by the CUDA Runtime or Driver API’s.

C/C++:

  Prototype: | `void *acc_get_current_cuda_device(void);`

Reference:

  OpenACC specification v2.0, section A.2.1.1.