mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
947dbed0aa
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;
|
|
}
|