JayBeams
0.1
Another project to have fun coding.
jb
clfft
init.cpp
Go to the documentation of this file.
1
#include "
jb/clfft/init.hpp
"
2
#include <
jb/clfft/error.hpp
>
3
4
jb::clfft::init::init
() {
5
clfftSetupData data{};
6
auto
err = clfftSetup(&data);
7
jb::clfft::check_error_code
(err,
"clfftSetup"
);
8
}
9
10
jb::clfft::init::~init
() noexcept(false) {
11
auto
err = clfftTeardown();
12
jb::clfft::check_error_code
(err,
"clfftTeardown"
);
13
}
jb::clfft::check_error_code
void check_error_code(cl_int err, char const *msg)
Check in an OpenCL error code is really an error and raise an exception if so.
Definition:
error.hpp:45
init.hpp
jb::clfft::init::init
init()
Definition:
init.cpp:4
jb::clfft::init::~init
~init() noexcept(false)
Definition:
init.cpp:10
error.hpp
Generated by
1.8.13