This file should not be directly included. It defines instructions for using bricklib with a GPU, but either brick-hip.h or brick-cuda.h should be included for correct runtime support.
More...
#include <cassert>
#include <brick.h>
#include "dev_shl.h"
Go to the source code of this file.
This file should not be directly included. It defines instructions for using bricklib with a GPU, but either brick-hip.h or brick-cuda.h should be included for correct runtime support.
◆ gpuCheck
◆ _gpuCheck()
template<typename T >
void _gpuCheck |
( |
T |
e, |
|
|
const char * |
func, |
|
|
const char * |
call, |
|
|
const int |
line |
|
) |
| |
◆ movBrickInfo()
Moving BrickInfo to or from GPU.
- Template Parameters
-
dims | implicit when used with bInfo argument |
- Parameters
-
bInfo | BrickInfo to copy to destination |
kind | Currently must be <hip|cuda>MempyHostToDevice or <hip|cuda>MemcpyDeviceToHost |
- Returns
- a new BrickInfo struct allocated on the destination
◆ movBrickInfoDeep()
Moving the full BrickInfo to or from GPU, including the adjacency list and other elements.
- Template Parameters
-
dims | implicit when used with bInfo argument |
- Parameters
-
bInfo | BrickInfo to copy to destination |
kind | Currently must be <hip|cuda>MempyHostToDevice or <hip|cuda>MemcpyDeviceToHost |
- Returns
- a new pointer to a BrickInfo allocated on the destination
◆ movBrickStorage()
Moving BrickStorage to or from GPU (allocate new)
- Parameters
-
bStorage | BrickStorage to copy from |
kind | Currently must be either <hip|cuda>MemcpyHostToDevice or <hip|cuda>MemcpyDeviceToHost |
- Returns
- a new BrickStorage struct allocated on the destination