Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

USE_DEVICE_PTR Clause

Parallel Directive Clause: Tells the construct to use a device pointer currently in the device data environment.

Syntax

USE_DEVICE_PTR (ptr-list)

ptr-list

Is a list of one or more variables of type C_PTR from the intrinsic module ISO_C_BINDING1. The pointers are converted into device pointers to the corresponding list item in the device data environment.

1 List items not of type C_PTR have been deprecated in the OpenMP* specification.

The pointers listed in ptr-list become private pointers in the device data environment. The device pointers to the corresponding list items in the device data environment are assigned to the private pointers.

References in the construct to a ptr-list item that appears in this clause must be to the address of the ptr-list item.