Skip to content

Instantly share code, notes, and snippets.

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[conf]
@valgur
valgur / virtual_tty
Last active March 12, 2025 13:18
Create a virtual TTY device to log traffic on a physical serial port
#!/bin/bash
# Default device path
DEFAULT_DEVICE="/dev/ttyUSB0"
DEFAULT_VIRT_DEVICE="/tmp/virtual_tty"
# Function to display usage information
usage() {
echo "Usage: $0 [OPTIONS]"
echo "Creates a virtual TTY connected to a real serial device with bidirectional logging."
@valgur
valgur / Dockerfile
Last active February 16, 2025 17:45
Minimal cross-compilation environment for gcc-13-aarch64-linux-gnu
FROM ubuntu:24.10 AS tools
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc-13 \
g++-13 \
gcc-13-aarch64-linux-gnu \
g++-13-aarch64-linux-gnu \
binutils-aarch64-linux-gnu \
@valgur
valgur / config-arm64-windows-static-md-dbg-build.ninja.log
Created December 9, 2024 08:32
ninja: error: failed recompaction: Permission denied failure for suitesparse-graphblas
This file has been truncated, but you can view the full file.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Ninja" Generator, CMake Version 3.30
# This file contains all the build statements describing the
# compilation DAG.
# =============================================================================
# Write statements declared in CMakeLists.txt:
#
# Which is the root file.
#!/bin/bash
set -o errexit -o nounset -o pipefail
if [ -f conandata.yml ]; then
dir=.
elif [ -f ../conandata.yml ]; then
dir=..
elif [ -f ../../conandata.yml ]; then
dir=../..
elif [ -f meson/conandata.yml ]; then
  • CCTag-1.0.3.tar.gz
    • CCTag-1.0.3/src/cctag/cuda/assist.cu
    • CCTag-1.0.3/src/cctag/cuda/cctag_cuda_runtime.h
    • CCTag-1.0.3/src/cctag/cuda/cmp_list.cu
    • CCTag-1.0.3/src/cctag/cuda/debug_image.cu
    • CCTag-1.0.3/src/cctag/cuda/debug_is_on_edge.cu
    • CCTag-1.0.3/src/cctag/cuda/frame.cu
    • CCTag-1.0.3/src/cctag/cuda/frame_01_tex.cu
    • CCTag-1.0.3/src/cctag/cuda/frame_02_gaussian.cu
  • CCTag-1.0.3/src/cctag/cuda/frame_03_magmap.cu
@valgur
valgur / projects_using_openmp_cmake_flags.md
Last active August 26, 2024 05:48
List of CCI projects using `OpenMP_C_FLAGS` or `OpenMP_CXX_FLAGS` to link against OpenMP
  • GKlib-METIS-v5.1.1-DistDGL-0.5.tar.gz
    • GKlibSystem.cmake
  • GraphBLAS-9.2.0.tar.gz
    • CMakeLists.txt
    • GraphBLAS/CMakeLists.txt
  • LightGBM-4.3.0.tar.gz
    • CMakeLists.txt
  • METIS-5.2.1.tar.gz
    • conf/gkbuild.cmake
  • OpenBLAS-0.3.27.tar.gz
This file has been truncated, but you can view the full file.
======== Exporting recipe to the cache ========
vtk/9.3.1: Exporting package recipe: /home/martin/libs/conan-center-index/recipes/vtk/all/conanfile.py
vtk/9.3.1: exports: File 'conandata.yml' found. Exporting it...
vtk/9.3.1: Calling export()
vtk/9.3.1: Calling export_sources()
vtk/9.3.1: Copied 5 '.json' files
vtk/9.3.1: Copied 1 '.yml' file: conandata.yml
vtk/9.3.1: Copied 1 '.py' file: conanfile.py
vtk/9.3.1: Copied 2 '.patch' files: 0001-add-missing-external-package-support.patch, 0002-make-libtiff-dependency-public.patch
class VtkConan(ConanFile):
def generate(self):
deps = CMakeDeps(self)
deps.generate()
# Store a mapping from CMake to Conan targets for later use in package_info()
targets_map = self._get_cmake_to_conan_targets_map(deps)
save(self, self._cmake_targets_map_json, json.dumps(targets_map, indent=2))
@property
@valgur
valgur / conan-openmp-header-packages.md
Last active July 20, 2024 15:49
Packages using '#pragma omp' in headers on ConanCenter
  • amgcl
    • amgcl/adapter/block_matrix.hpp
    • amgcl/adapter/reorder.hpp
    • amgcl/adapter/scaled_problem.hpp
    • amgcl/backend/block_crs.hpp
    • amgcl/backend/builtin.hpp
    • amgcl/backend/detail/matrix_ops.hpp
    • amgcl/coarsening/plain_aggregates.hpp
    • amgcl/coarsening/pointwise_aggregates.hpp
  • amgcl/coarsening/ruge_stuben.hpp