Download cmake/checks/cann.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cann.cpp
- Command line
-
hf download hf://tgollogly/test/cmake/checks/cann.cpp
-
curl -L -o cann.cpp https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cann.cpp
383 Bytes
| 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; | |
| } | |