git clone https://github.com/RadeonOpenCompute/rocm-cmake.git
mkdir bulid
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm ..
make
sudo make install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// © 2021 Erik Rigtorp <erik@rigtorp.se> | |
// SPDX-License-Identifier: MIT | |
// udpcap: Simple tool to record UDP streams | |
#include <arpa/inet.h> | |
#include <err.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <getopt.h> |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The CXX compiler identification is GNU 10.2.1 | |
-- The C compiler identification is GNU 10.2.1 | |
-- Check for working CXX compiler: /usr/lib64/ccache/c++ | |
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Check for working C compiler: /usr/lib64/ccache/cc | |
-- Check for working C compiler: /usr/lib64/ccache/cc - works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline uint64_t rdtsc() { | |
uint64_t hi, lo; | |
asm volatile ("mfence; rdtsc\n" : "=a" (lo), "=d" (hi)); | |
return (hi << 32) | lo; | |
} |
Fetch all remotes for all git repositories in directory (recursively)
$ find . -name .git -type d -execdir git --git-dir '{}' fetch --all ';'