P4 to Git Change 1576872 by skudchad@skudchad_rocm on 2018/07/05 20:20:21
SWDEV-145570 - [HIP] - Add hipMalloc3D to linker symtable.
- Add structure for hipFuncGetAttributes
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.map.in#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#11 edit
[ROCm/hip commit: e143868b47]
This commit is contained in:
@@ -68,6 +68,7 @@ hipIpcCloseMemHandle
|
||||
hipIpcGetMemHandle
|
||||
hipIpcOpenMemHandle
|
||||
hipMalloc
|
||||
hipMalloc3D
|
||||
hipMalloc3DArray
|
||||
hipMallocArray
|
||||
hipMallocHost
|
||||
@@ -108,6 +109,7 @@ hipModuleLoad
|
||||
hipModuleLoadData
|
||||
hipModuleLoadDataEx
|
||||
hipModuleUnload
|
||||
hipFuncGetAttributes
|
||||
hipPeekAtLastError
|
||||
hipPointerGetAttributes
|
||||
hipProfilerStart
|
||||
|
||||
@@ -69,6 +69,7 @@ global:
|
||||
hipIpcGetMemHandle;
|
||||
hipIpcOpenMemHandle;
|
||||
hipMalloc;
|
||||
hipMalloc3D;
|
||||
hipMalloc3DArray;
|
||||
hipMallocArray;
|
||||
hipMallocHost;
|
||||
@@ -109,6 +110,7 @@ global:
|
||||
hipModuleLoadData;
|
||||
hipModuleLoadDataEx;
|
||||
hipModuleUnload;
|
||||
hipFuncGetAttributes;
|
||||
hipPeekAtLastError;
|
||||
hipPointerGetAttributes;
|
||||
hipProfilerStart;
|
||||
@@ -137,25 +139,26 @@ global:
|
||||
hip_impl::hipLaunchKernelGGLImpl*;
|
||||
hipCreateTextureObject*;
|
||||
hipDestroyTextureObject*;
|
||||
hipGetTextureObjectResourceDesc;
|
||||
hipGetTextureObjectResourceViewDesc;
|
||||
hipGetTextureObjectTextureDesc;
|
||||
hipBindTexture;
|
||||
hipBindTexture2D;
|
||||
hipBindTextureToArray;
|
||||
hipBindTextureToMipmappedArray;
|
||||
hipUnbindTexture;
|
||||
hipGetChannelDesc;
|
||||
hipGetTextureAlignmentOffset;
|
||||
hipGetTextureReference;
|
||||
hipTexRefSetFormat;
|
||||
hipTexRefSetFlags;
|
||||
hipTexRefSetFilterMode;
|
||||
hipTexRefSetAddressMode;
|
||||
hipTexRefSetArray;
|
||||
hipTexRefSetAddress;
|
||||
hipTexRefSetAddress2D;
|
||||
hipGetTextureObjectResourceDesc*;
|
||||
hipGetTextureObjectResourceViewDesc*;
|
||||
hipGetTextureObjectTextureDesc*;
|
||||
hipBindTexture*;
|
||||
hipBindTexture2D*;
|
||||
hipBindTextureToArray*;
|
||||
hipBindTextureToMipmappedArray*;
|
||||
hipUnbindTexture*;
|
||||
hipGetChannelDesc*;
|
||||
hipGetTextureAlignmentOffset*;
|
||||
hipGetTextureReference*;
|
||||
hipTexRefSetFormat*;
|
||||
hipTexRefSetFlags*;
|
||||
hipTexRefSetFilterMode*;
|
||||
hipTexRefSetAddressMode*;
|
||||
hipTexRefSetArray*;
|
||||
hipTexRefSetAddress*;
|
||||
hipTexRefSetAddress2D*;
|
||||
hipCreateChannelDesc*;
|
||||
ihipBindTextureImpl*;
|
||||
ihipBindTextureToArrayImpl*;
|
||||
hipHccGetAccelerator*;
|
||||
hipHccGetAcceleratorView*;
|
||||
|
||||
@@ -130,6 +130,13 @@ hipError_t hipModuleGetFunction(hipFunction_t *hfunc, hipModule_t hmod, const ch
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
|
||||
{
|
||||
HIP_INIT_API(attr, func);
|
||||
|
||||
return hipErrorInvalidDeviceFunction;
|
||||
}
|
||||
|
||||
hipError_t hipModuleLaunchKernel(hipFunction_t f,
|
||||
uint32_t gridDimX, uint32_t gridDimY, uint32_t gridDimZ,
|
||||
uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ,
|
||||
|
||||
مرجع در شماره جدید
Block a user