#include <dlfcn.h>
#include <stdio.h>
#include "acc_runtime.h"
#include "func_define.h"
Go to the source code of this file.
◆ LOAD_DSYM
| #define LOAD_DSYM |
( |
| FUNC_NAME | ) |
|
Value: *(void**)(&FUNC_NAME) = dlsym(handle, #FUNC_NAME); \
if (FUNC_NAME == NULL) { \
fprintf(stderr, "Fatal error: was not able to load function " #FUNC_NAME "\n"); \
abort(); \
}
◆ AcLibHandle
◆ acLibLoadLibrary()
| AcLibHandle acLibLoadLibrary |
( |
const AcMeshInfo * | info, |
|
|
const char * | lib_path, |
|
|
const char * | lib_filename, |
|
|
int * | counter ) |