/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocrand/checkouts/latest/library/include/rocrand/rocrandapi.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocrand/checkouts/latest/library/include/rocrand/rocrandapi.h Source File#

API library: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocrand/checkouts/latest/library/include/rocrand/rocrandapi.h Source File
rocrandapi.h
1 #ifndef ROCRAND_ROCRANDAPI_H_
2 #define ROCRAND_ROCRANDAPI_H_
3 
5 #ifndef ROCRANDAPI
6  #if defined(ROCRAND_STATIC_BUILD)
7  #define ROCRANDAPI
8  // device symbols are not marked with ROCRANDAPI (they are not exported)
9  // but clang warns on host symbols if they are marked with dllexport/dllimport
10  // during device compilation.
11  #elif defined(__HIP_DEVICE_COMPILE__)
12  #define ROCRANDAPI
13  #elif defined(_WIN32)
14  #ifdef rocrand_EXPORTS
15  /* We are building this library */
16  #define ROCRANDAPI __declspec(dllexport)
17  #else
18  /* We are using this library */
19  #define ROCRANDAPI __declspec(dllimport)
20  #endif
21  #else
22  #define ROCRANDAPI __attribute__((visibility("default")))
23  #endif
24 #endif
26 
27 #endif // ROCRAND_ROCRANDAPI_H_