Skip to content

Instantly share code, notes, and snippets.

@valgur
valgur / merged_deploy.py
Last active April 17, 2025 01:31
Conan deployer to merge all dependencies into a single directory tree
# License: public domain / CC0-1.0
import os
import shutil
from conan.api.output import ConanOutput
from conan.errors import ConanException
from conans.util.files import rmdir, mkdir
@valgur
valgur / find_dynamic_deps.py
Created July 2, 2024 07:26
Find all dynamic libraries needed by ELF or MachO executables recursively
#!/usr/bin/env python3
import fnmatch
import platform
import sys
from pathlib import Path
from pprint import pprint
from elftools.elf.dynamic import DynamicSection
from elftools.elf.elffile import ELFFile
from macholib.MachO import MachO
@valgur
valgur / conan-openmp-packages.md
Last active July 20, 2024 16:06
Packages using '#pragma omp' on ConanCenter
  • acado
    • acado/code_generation/export_nlp_solver.cpp
    • acado/code_generation/integrators/discrete_export.cpp
    • acado/code_generation/integrators/erk_3sweep_export.cpp
    • acado/code_generation/integrators/erk_adjoint_export.cpp
    • acado/code_generation/integrators/erk_export.cpp
    • acado/code_generation/integrators/irk_export.cpp
    • acado/code_generation/integrators/irk_forward_export.cpp
    • acado/code_generation/integrators/irk_lifted_forward_export.cpp
  • acado/code_generation/integrators/lifted_erk_export.cpp
@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
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
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
@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
  • 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
#!/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
@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.