Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions openmp/runtime/src/include/omp_lib.F90.var
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,16 @@
end function omp_get_device_num

function omp_get_uid_from_device(device_num) bind(c)
use, intrinsic :: iso_c_binding, only: c_ptr
use omp_lib_kinds
integer (kind=omp_integer_kind), value :: device_num
character (len=*) omp_get_uid_from_device
type(c_ptr) omp_get_uid_from_device
end function omp_get_uid_from_device

function omp_get_device_from_uid(device_uid) bind(c)
use, intrinsic :: iso_c_binding, only: c_ptr
use omp_lib_kinds
character (len=*), value :: device_uid
type(c_ptr), value :: device_uid
integer (kind=omp_integer_kind) omp_get_device_from_uid
end function omp_get_device_from_uid

Expand Down
6 changes: 4 additions & 2 deletions openmp/runtime/src/include/omp_lib.h.var
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,15 @@

function omp_get_uid_from_device(device_num) bind(c)
import
import :: c_ptr
integer (kind=omp_integer_kind), value :: device_num
character (len=*) omp_get_uid_from_device
type(c_ptr) omp_get_uid_from_device
end function omp_get_uid_from_device

function omp_get_device_from_uid(device_uid) bind(c)
import
character (len=*), value :: device_uid
import :: c_ptr
type(c_ptr), value :: device_uid
integer (kind=omp_integer_kind) omp_get_device_from_uid
end function omp_get_device_from_uid

Expand Down
Loading