Added support for constant memory

1. Added support for constant memory
2. Added test which uses memcpytosymbol for constant memory
3. Corrected code error on nvcc path

Change-Id: I2ab69f516832bf7a037132ac81273ea6f5107401
此提交包含在:
Aditya Atluri committed 2016-10-20 09:57:53 -05:00
1 父節點 cd6eb7af78
當前提交 48f6d52e7c
3 file changed
+61 -2

No files matched your search

+1 -1
查看文件
@@ -47,7 +47,7 @@ THE SOFTWARE.
*/
// _restrict is supported by the compiler
#define __shared__ tile_static
#define __constant__ __attribute__((address_space(2)))
#define __constant__ __attribute__((address_space(1)))
#else
// Non-HCC compiler
+1 -1
查看文件
@@ -741,7 +741,7 @@ inline static hipError_t hipDeviceGetPCIBusId(int *pciBusId,int len,hipDevice_t
inline static hipError_t hipDeviceGetLimit(size_t *pValue, hipLimit_t limit)
{
return hipCUDAErrorTohipError(cudaDeviceGetLimit(pValue, limit);
return hipCUDAErrorTohipError(cudaDeviceGetLimit(pValue, limit));
}
inline static hipError_t hipDeviceTotalMem(size_t *bytes,hipDevice_t device)