Fixed hipDeviceGetCacheConfig on nvcc path

1. Changed test macro to emit line numbers
2. Added getcacheconfig api test for nvcc path
3. Fixed hipFuncCache_t data type

TODO: With this commit, right now there are 2 func cache datatypes
a. hipFuncCache_t for runtime API
b. hipFuncCache for driver API

Map these to a single data type

Change-Id: Ia47c9f5d7c2633638051bf17b1103048a1ede973
Этот коммит содержится в:
Aditya Atluri
2016-11-20 12:18:08 -06:00
родитель 0edc082ff6
Коммит afaa5fcf96
6 изменённых файлов: 40 добавлений и 6 удалений
+3 -2
Просмотреть файл
@@ -23,12 +23,13 @@ THE SOFTWARE.
int main()
{
int val;
hipDeviceAttr_t attr = hipDevAttrMaxThreadsPerBlock;
hipDeviceAttribute_t attr = hipDeviceAttributeMaxThreadsPerBlock; ///< Maximum number of threads per block.
HIP_PRINT_STATUS(hipDeviceGetAttribute(NULL, attr, 0));
HIP_PRINT_STATUS(hipDeviceGetAttribute(&val, attr, 0));
HIP_PRINT_STATUS(hipDeviceGetAttribute(NULL, attr, -1));
HIP_PRINT_STATUS(hipDeviceGetAttribute(&val, attr, -1));
attr = 91;
attr = hipDeviceAttribute_t(91);
HIP_PRINT_STATUS(hipDeviceGetAttribute(NULL, attr, 0));
HIP_PRINT_STATUS(hipDeviceGetAttribute(&val, attr, 0));