mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Any target that might need to link to hip code needs the `hip::device` target
13 lines
135 B
C
13 lines
135 B
C
|
|
|
|
#ifdef _WIN32
|
|
# define EXPORT __declspec(dllexport)
|
|
#else
|
|
# define EXPORT
|
|
#endif
|
|
|
|
EXPORT int shared_c_func(int x)
|
|
{
|
|
return -x;
|
|
}
|