![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Source part of macros set for image processing algorithm class for Cuda implementation. More...
Go to the source code of this file.
Macros | |
| #define | IPSDKCUDA_CHECK_IMAGE_ON_GPU(image) |
| Test if image is stored on GPU. More... | |
| #define | IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU(r, data, IMAGE) IPSDKCUDA_CHECK_IMAGE_ON_GPU(IMAGE) |
| IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU on IMAGE. More... | |
| #define | IPSDKGPU_CHECK_IMAGES_ON_GPU(IMAGES) BOOST_PP_SEQ_FOR_EACH(IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU, _, IMAGES) |
| Parse the iamge list to check if they are stored on GPU. | |
| #define | IPSDKCUDA_TRY_TO_LAUNCH_PROCESS_ON_GPU() |
| Calls the method tryToLaunchGpuProcess() If the calculation can be performed on GPU, the macro makes the retrieveProvider method return eRetrievalResultType::eRRT_NoMore to make IPSDK switch to classical CPU calculation. More... | |
| #define | IPSDKCUDA_CHECK_PROCESS_CAN_BE_LAUNCHED_ON_GPU() |
| Checks if the process can be launched on GPU. More... | |
| #define | IPSDKCUDA_START_IMPLEMENT_LAUNCH_GPU_PROCESS(AlgoName) |
| Implements the beginning of the body of the method tryToLaunchGpuProcess() in order to avoid code duplication. The macro parse all algorithm attributes and check if all the attribute images are loaded on GPU. If this condition is respected, The GPU lvl2 is dispatcher is created so that the user only have to initialize it. Otherwise, the function notify the retrieveProvider method that the process must be done on CPU. More... | |
| #define | IPSDKCUDA_END_IMPLEMENT_LAUNCH_GPU_PROCESS() |
| Implements the end of the body of the method tryToLaunchGpuProcess() in order to avoid code duplication. The macro checks the result of the dispathcer initialization and returns the appropriate result to manage CPU or GPU Lvl2 calculation. More... | |
| #define | IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU(r, data, IMAGE) IPSDKCUDA_CHECK_IMAGE_ON_GPU(IMAGE) |
| IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU on IMAGE. More... | |
| #define | IPSDKCUDA_CHECK_IMAGES_ON_GPU(IMAGES) BOOST_PP_SEQ_FOR_EACH(IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU, _, IMAGES) |
| Parse the iamge list to check if they are stored on GPU. | |
Source part of macros set for image processing algorithm class for Cuda implementation.
| #define IPSDKCUDA_CHECK_IMAGE_ON_GPU | ( | image | ) |
Test if image is stored on GPU.
| #define IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU | ( | r, | |
| data, | |||
| IMAGE | |||
| ) | IPSDKCUDA_CHECK_IMAGE_ON_GPU(IMAGE) |
IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU on IMAGE.
IPSDKCUDA_CHECK_IMAGE_ON_GPU on IMAGE.
| #define IPSDKCUDA_TRY_TO_LAUNCH_PROCESS_ON_GPU | ( | ) |
Calls the method tryToLaunchGpuProcess() If the calculation can be performed on GPU, the macro makes the retrieveProvider method return eRetrievalResultType::eRRT_NoMore to make IPSDK switch to classical CPU calculation.
| #define IPSDKCUDA_CHECK_PROCESS_CAN_BE_LAUNCHED_ON_GPU | ( | ) |
Checks if the process can be launched on GPU.
| #define IPSDKCUDA_START_IMPLEMENT_LAUNCH_GPU_PROCESS | ( | AlgoName | ) |
Implements the beginning of the body of the method tryToLaunchGpuProcess() in order to avoid code duplication. The macro parse all algorithm attributes and check if all the attribute images are loaded on GPU. If this condition is respected, The GPU lvl2 is dispatcher is created so that the user only have to initialize it. Otherwise, the function notify the retrieveProvider method that the process must be done on CPU.
| #define IPSDKCUDA_END_IMPLEMENT_LAUNCH_GPU_PROCESS | ( | ) |
Implements the end of the body of the method tryToLaunchGpuProcess() in order to avoid code duplication. The macro checks the result of the dispathcer initialization and returns the appropriate result to manage CPU or GPU Lvl2 calculation.
| #define IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU | ( | r, | |
| data, | |||
| IMAGE | |||
| ) | IPSDKCUDA_CHECK_IMAGE_ON_GPU(IMAGE) |
IPSDKCUDA_APPLY_CHECK_IMAGES_ON_GPU on IMAGE.
IPSDKCUDA_CHECK_IMAGE_ON_GPU on IMAGE.
1.8.14