Visible to Intel only — GUID: ewa1402760903492
Ixiasoft
Visible to Intel only — GUID: ewa1402760903492
Ixiasoft
2.3.3. aocl_mmd_open
Syntax
int aocl_mmd_open( const char* name );
Function Arguments
name—The function opens the board with a name that matches this const char* string. The name typically matches the one specified by the AOCL_MMD_BOARD_NAMES offline information.
The OpenCL™ runtime first queries the AOCL_MMD_BOARD_NAMES offline information to identify the boards that it might be able to open. Then it attempts to open all possible devices by calling aocl_mmd_open and using each of the board names as argument.
Return Value
If aocl_mmd_open() executes successfully, the return value is a positive integer that acts as a handle to the board.
If aocl_mmd_open() fails to execute, a negative return value indicates an error. In the event of an error, the OpenCL runtime proceeds to open other known devices. Therefore, it is imperative that the MMD layer does not exit the application if an open call fails.