For using bricklib with HIP. Directs the functions used in brick-gpu.h to corresponding HIP functions.
More...
#include <hip/hip_runtime.h>
#include "brick-gpu.h"
Go to the source code of this file.
|
| #define | gpuMalloc(p, s) hipMalloc(p, s) |
| |
| #define | gpuMemcpy(d, p, s, k) hipMemcpy(d, p, s, k) |
| |
| #define | gpuFree(p) hipFree(p) |
| |
| #define | gpuGetErrorString(e) hipGetErrorString(e) |
| |
| #define | gpuDeviceSynchronize() hipDeviceSynchronize() |
| |
| #define | gpuMemcpyToSymbol(p, d, s) hipMemcpyToSymbol(p, d, s, hipMemcpyHostToDevice) |
| |
| #define | gpuDeviceSetCacheConfig(c) hipDeviceSetCacheConfig(c) |
| |
| #define | gpuFuncCachePreferL1 hipFuncCachePreferL1 |
| |
| #define | gpuSuccess hipSuccess |
| |
| #define | gpuMemcpyKind hipMemcpyKind |
| |
| #define | gpuMemcpyHostToDevice hipMemcpyHostToDevice |
| |
| #define | gpuMemcpyDeviceToHost hipMemcpyDeviceToHost |
| |
| #define | gpuExecKernel(f, b, t, a...) hipLaunchKernelGGL(f, b, t, 0, 0, a) |
| |
| #define | blockIdx_x hipBlockIdx_x |
| |
| #define | blockIdx_y hipBlockIdx_y |
| |
| #define | blockIdx_z hipBlockIdx_z |
| |
| #define | threadIdx_x hipThreadIdx_x |
| |
| #define | threadIdx_y hipThreadIdx_y |
| |
| #define | threadIdx_z hipThreadIdx_z |
| |
For using bricklib with HIP. Directs the functions used in brick-gpu.h to corresponding HIP functions.
◆ blockIdx_x
| #define blockIdx_x hipBlockIdx_x |
◆ blockIdx_y
| #define blockIdx_y hipBlockIdx_y |
◆ blockIdx_z
| #define blockIdx_z hipBlockIdx_z |
◆ gpuDeviceSetCacheConfig
| #define gpuDeviceSetCacheConfig |
( |
|
c | ) |
hipDeviceSetCacheConfig(c) |
◆ gpuDeviceSynchronize
| #define gpuDeviceSynchronize |
( |
| ) |
hipDeviceSynchronize() |
◆ gpuExecKernel
| #define gpuExecKernel |
( |
|
f, |
|
|
|
b, |
|
|
|
t, |
|
|
|
a... |
|
) |
| hipLaunchKernelGGL(f, b, t, 0, 0, a) |
◆ gpuFree
| #define gpuFree |
( |
|
p | ) |
hipFree(p) |
◆ gpuFuncCachePreferL1
| #define gpuFuncCachePreferL1 hipFuncCachePreferL1 |
◆ gpuGetErrorString
| #define gpuGetErrorString |
( |
|
e | ) |
hipGetErrorString(e) |
◆ gpuMalloc
| #define gpuMalloc |
( |
|
p, |
|
|
|
s |
|
) |
| hipMalloc(p, s) |
◆ gpuMemcpy
| #define gpuMemcpy |
( |
|
d, |
|
|
|
p, |
|
|
|
s, |
|
|
|
k |
|
) |
| hipMemcpy(d, p, s, k) |
◆ gpuMemcpyDeviceToHost
| #define gpuMemcpyDeviceToHost hipMemcpyDeviceToHost |
◆ gpuMemcpyHostToDevice
| #define gpuMemcpyHostToDevice hipMemcpyHostToDevice |
◆ gpuMemcpyKind
| #define gpuMemcpyKind hipMemcpyKind |
◆ gpuMemcpyToSymbol
| #define gpuMemcpyToSymbol |
( |
|
p, |
|
|
|
d, |
|
|
|
s |
|
) |
| hipMemcpyToSymbol(p, d, s, hipMemcpyHostToDevice) |
◆ gpuSuccess
| #define gpuSuccess hipSuccess |
◆ threadIdx_x
| #define threadIdx_x hipThreadIdx_x |
◆ threadIdx_y
| #define threadIdx_y hipThreadIdx_y |
◆ threadIdx_z
| #define threadIdx_z hipThreadIdx_z |