From bb447dd76e67012968ceb5344cc7e1c9881cef5e Mon Sep 17 00:00:00 2001 From: Jeff Daily Date: Mon, 29 Oct 2018 09:35:25 -0700 Subject: [PATCH] typedef struct hipFuncAttributes now C compatible. Fixes #591. Fixes #694. --- include/hip/hcc_detail/hip_runtime_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hip/hcc_detail/hip_runtime_api.h b/include/hip/hcc_detail/hip_runtime_api.h index 60609fd135..c9ff32d197 100644 --- a/include/hip/hcc_detail/hip_runtime_api.h +++ b/include/hip/hcc_detail/hip_runtime_api.h @@ -94,7 +94,7 @@ typedef struct ihipModule_t* hipModule_t; typedef struct ihipModuleSymbol_t* hipFunction_t; -struct hipFuncAttributes { +typedef struct hipFuncAttributes { int binaryVersion; int cacheModeCA; size_t constSizeBytes; @@ -105,7 +105,7 @@ struct hipFuncAttributes { int preferredShmemCarveout; int ptxVersion; size_t sharedSizeBytes; -}; +} hipFuncAttributes; typedef struct ihipEvent_t* hipEvent_t;