[HIPIFY] Add device functions support

+ Add a corresponding matcher cudaDeviceFuncCall to match only (__device__ or __global__) and not __host__ functions.
+ Add a corresponding device functions mapping:
  only unsupported are listed, cause supported are exactly the same as of CUDA and do not need transformation;
  make FindAndReplace for device functions separated from host API calls.
+ Add a test to distinguish device functions and user-defined.


[ROCm/hip commit: 6602fadc16]
This commit is contained in:
Evgeny Mankov
2019-09-06 18:34:12 +03:00
vanhempi 191482e1e4
commit 17b734afde
7 muutettua tiedostoa jossa 135 lisäystä ja 5 poistoa
@@ -57,6 +57,7 @@ const char *counterNames[NUM_CONV_TYPES] = {
"complex", // CONV_COMPLEX
"library", // CONV_LIB_FUNC
"device_library", // CONV_LIB_DEVICE_FUNC
"device_function", // CONV_DEVICE_FUNC
"include", // CONV_INCLUDE
"include_cuda_main_header", // CONV_INCLUDE_CUDA_MAIN_H
"type", // CONV_TYPE