Add HIP_KERNEL_NAME/HIP_SYMBOL definitions for HIP-clang, and rename hipLaunch->hipLaunchByPtr.

Цей коміт міститься в:
Laurent Morichetti
2018-03-21 11:07:21 -07:00
джерело 0d45c1d2d3
коміт a06b21c500
+3 -4
Переглянути файл
@@ -527,9 +527,8 @@ do {\
#elif defined(__clang__) && defined(__HIP__)
#define hipConfigureCall cudaConfigureCall
#define hipSetupArgument cudaSetupArgument
#define hipLaunch cudaLaunch
#define HIP_KERNEL_NAME(...) __VA_ARGS__
#define HIP_SYMBOL(X) #X
typedef int hipLaunchParm ;
@@ -551,7 +550,7 @@ extern "C" {
hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream);
hipError_t hipSetupArgument(const void *arg, size_t size, size_t offset);
hipError_t hipLaunch(const void *func);
hipError_t hipLaunchByPtr(const void *func);
#if defined(__cplusplus)
}