There is a surprising lack of documentation on how to do this. See:
- http://dst.lbl.gov/~boverhof/openssl_certs.html
- etcd-io/etcd#209
- https://www.prshanmu.com/2009/03/generating-ssl-certificates-with-x509v3-extensions.html
Run:
| #include <nvml.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <iostream> | |
| int main(){ | |
| nvmlInit(); | |
| unsigned int cnt = 0; | |
| nvmlReturn_enum res = nvmlDeviceGetCount(&cnt); | |
| std::cout << res << std::endl; |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
There is a surprising lack of documentation on how to do this. See:
Run:
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <memory> | |
| #include <iostream> | |
| #include <thread> | |
| #include <unistd.h> | |
| class Test{ | |
| public: | |
| int a; |