create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| from __future__ import annotations | |
| import argparse | |
| import logging | |
| import re | |
| # eg: `dense<"0xFFFF..."> : tensor<384xi32>` | |
| # eg: `dense<[7031, 6266, 5765, ...]> : tensor<64xi32>` | |
| RE_dense = re.compile(r"dense\<[\"\[][a-zA-Z0-9-,\ ]*[\"\]]\>") |
| import argparse | |
| import os | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("raw", type=str, help="raw") | |
| parser.add_argument("--inplace", "-i", action="store_false", help="inplace") | |
| args = parser.parse_args() | |
| # args = [] | |
| # cmd = "cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug ..." |
| # conda config --add channels conda-forge | |
| # conda config --set channel_priority strict | |
| curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba | |
| mkdir -p $HOME/micromamba | |
| mv ./bin $HOME/micromamba | |
| $HOME/micromamba/bin/micromamba shell init --shell bash --root-prefix=$HOME/micromamba | |
| micromamba config append channels conda-forge | |
| micromamba create -n pyenv python=3.12 |
| import argparse | |
| import binascii | |
| import tarfile | |
| from io import BytesIO | |
| import qrcode | |
| parser = argparse.ArgumentParser("xx") | |
| parser.add_argument("--input_file", type=str, required=True, help="input file") |
| option(AUTO_CCACHE "Use ccache to speed up rebuilds" ON) | |
| find_program(CCACHE_PROGRAM ccache) | |
| if(CCACHE_PROGRAM AND ${AUTO_CCACHE}) | |
| message(STATUS "Using ${CCACHE_PROGRAM} as compiler launcher") | |
| set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}") | |
| # requires at least CMake 3.9 to be any use | |
| set(CMAKE_CUDA_COMPILER_LAUNCHER "${CCACHE_PROGRAM}") | |
| endif() |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
(In this document I pay attention mostly to data storage in scientific applications, not to web protocols.)
| cmake_minimum_required(VERSION 3.0) | |
| project(project) | |
| set(CMAKE_VERBOSE_MAKEFILE ON) | |
| # a shared library | |
| add_library(lib SHARED lib.cpp) | |
| add_executable(main main.cpp) |
This is a spontaneous and verbatime log of a conversion with Boris Staletic @bstaletic from March, 24th 2018 on the pybind11 gitter. Thank you so much, Boris!
To confuse future readers, we decided to write down the discussion and I added typos and unnecessarily long sentences.
The issue came up with linking a CMake (library) target into a pybind11 module (in openPMD-api).