You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desc: "Create a program object from native binaries for the specified devices."
131
+
class: $xProgram
132
+
name: CreateWithBinaryExp
133
+
decl: static
134
+
ordinal: "5"
135
+
analogue:
136
+
- "**clCreateProgramWithBinary**"
137
+
details:
138
+
- "The application may call this function from simultaneous threads."
139
+
- "Following a successful call to this entry point, `phProgram` will contain binaries of type $X_PROGRAM_BINARY_TYPE_COMPILED_OBJECT or $X_PROGRAM_BINARY_TYPE_LIBRARY for the specified devices in `phDevices`."
140
+
- "The devices specified by `phDevices` must be associated with the context."
141
+
- "The adapter may (but is not required to) perform validation of the provided modules during this call."
142
+
params:
143
+
- type: $x_context_handle_t
144
+
name: hContext
145
+
desc: "[in] handle of the context instance"
146
+
- type: uint32_t
147
+
name: numDevices
148
+
desc: "[in] number of devices"
149
+
- type: $x_device_handle_t*
150
+
name: phDevices
151
+
desc: "[in][range(0, numDevices)] a pointer to a list of device handles. The binaries are loaded for devices specified in this list."
152
+
- type: size_t*
153
+
name: pLengths
154
+
desc: "[in][range(0, numDevices)] array of sizes of program binaries specified by `pBinaries` (in bytes)."
155
+
- type: const uint8_t**
156
+
name: ppBinaries
157
+
desc: "[in][range(0, numDevices)] pointer to program binaries to be loaded for devices specified by `phDevices`."
158
+
- type: const $x_program_properties_t*
159
+
name: pProperties
160
+
desc: "[in][optional] pointer to program creation properties."
161
+
- type: $x_program_handle_t*
162
+
name: phProgram
163
+
desc: "[out] pointer to handle of Program object created."
0 commit comments