mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 09:49:13 +08:00
21 lines
383 B
C++
21 lines
383 B
C++
|
#include <acl/acl.h>
|
||
|
#include <unistd.h> // fork()
|
||
|
#include <iostream>
|
||
|
|
||
|
int main(int /*argc*/, char** /*argv*/)
|
||
|
{
|
||
|
int ret = aclInit(NULL);
|
||
|
if (ret != 0)
|
||
|
{
|
||
|
std::cerr << "Failed to initialize Ascend, ret = " << ret;
|
||
|
}
|
||
|
|
||
|
ret = aclFinalize();
|
||
|
if (ret != 0)
|
||
|
{
|
||
|
std::cerr << "Failed to de-initialize Ascend, ret = " << ret;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|