docker ps docker container ls # same
docker exec -it Name555 bash
docker build -t Tag123:v2 . # Uses local Dockerfile docker build -f Dockerfile22 -t Tag123:v2 .
| # https://www.brendangregg.com/perf.html | |
| /usr/local/bin/perf record -g -e cpu-clock -F 99 <bin_file> | |
| /usr/local/bin/perf script | stackcollapse-perf.pl | flamegraph.pl > mm_flame.svg |
| readelf -n /usr/local/cuda/lib64/libcudart.so | |
| # ... Build ID: 70f26eb93e24216ffc0e93ccd8da31612d277030 | |
| # Open https://cudatoolkit-symbols.nvidia.com/libcudart.so/70f26eb93e24216ffc0e93ccd8da31612d277030/index.html to find out a filename | |
| wget https://cudatoolkit-symbols.nvidia.com/libcudart.so/70f26eb93e24216ffc0e93ccd8da31612d277030/libcudart.so.12.2.128.sym | |
| eu-unstrip /usr/local/cuda-12.2/targets/x86_64-linux/lib/libcudart.so.12.2.128 libcudart.so.12.2.128.sym –o /usr/local/cuda-12.2/targets/x86_64-linux/lib/libcudart.so.12.2.128 | |
| # Or deploy as symbol file | |
| cp libcudart.so.12.2.128.sym /usr/lib/debug/.build-id/70/f26eb93e24216ffc0e93ccd8da31612d277030.debug |
| " An example for a vimrc file. | |
| " | |
| " Maintainer: Bram Moolenaar <[email protected]> | |
| " Last change: 2008 Jul 02 | |
| " | |
| " To use it, copy it to | |
| " for Unix and OS/2: ~/.vimrc | |
| " for Amiga: s:.vimrc | |
| " for MS-DOS and Win32: $VIM\_vimrc | |
| " for OpenVMS: sys$login:.vimrc |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
| To make Pageant automatically run and load keys at startup: | |
| - Find the location of pageant.exe | |
| - Windows key + R to open the 'run' dialog box | |
| - Type: 'shell:startup' in the dialog box | |
| - Create a shortcut to the pageant.exe and put into this startup folder. |
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or just head straight to the command line:
# Clone your fork to your local machine
git clone [email protected]:USERNAME/FORKED-PROJECT.git| # Based on oneAPI description | |
| # Both from C order | |
| n, m = A.shape | |
| ldm, lda = n, 3 | |
| ku, kl = 1, 1 | |
| B = np.zeros((lda, ldm)) | |
| for j in range(n): | |
| k = ku - j | |
| for i in range(max(0, j-ku), min(m, j + kl + 1)): | |
| B[(k + i), j] = A[i, j] |
| def diagonal_form(a, upper = 1, lower= 1): | |
| """ | |
| a is a numpy square matrix | |
| this function converts a square matrix to diagonal ordered form | |
| returned matrix in ab shape which can be used directly for scipy.linalg.solve_banded | |
| """ | |
| n = a.shape[1] | |
| assert(np.all(a.shape ==(n,n))) | |
| ab = np.zeros((2*n-1, n)) |