Installing Xcode and the command line tools need to be done first because it installs gcc.
https://developer.apple.com/xcode/features/
Or via the terminal:
| # Mathieu Blondel, September 2010 | |
| # License: BSD 3 clause | |
| import numpy as np | |
| from numpy import linalg | |
| import cvxopt | |
| import cvxopt.solvers | |
| def linear_kernel(x1, x2): | |
| return np.dot(x1, x2) |
Installing Xcode and the command line tools need to be done first because it installs gcc.
https://developer.apple.com/xcode/features/
Or via the terminal:
| ## Install perf in docker container | |
| ### ubuntu 18.4 | |
| ### kernel 4.14.173-137.229.amzn2.x86_64 | |
| docker exec -it {containerid} sh | |
| wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.173.tar.xz && tar -xf ./linux-4.14.173.tar.xz && cd linux-4.14.173/tools/perf/ && apt -y install flex bison && make -C . && make install | |
| ./perf | |
| ./perf list | |
| ./perf bench mem all |