| 830 | RAIICloseFD(int fd) : m_fd(fd) {} |
| 831 | ~RAIICloseFD() { close(); } |
| 832 | void close() { |
| 833 | if (m_fd != -1) { |
| 834 | ::close(m_fd); |
| 835 | m_fd = -1; |
| 836 | } |
| 837 | } |
| 838 | }; |
| 839 | // an implementation that does not call cuInit |
| 840 | template <typename Func, typename Val> |
no outgoing calls
no test coverage detected