All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box | 
|---|---|
| aix | ✅ | 
| android | ✅ | 
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <memory> | |
| #include <iostream> | |
| #include <thread> | |
| #include <unistd.h> | |
| class Test{ | |
| public: | |
| int a; | 
There is a surprising lack of documentation on how to do this. See:
Run:
| # 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. | 
| #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; |