Skip to content

Instantly share code, notes, and snippets.

@acxz
acxz / arena-tbb.txt
Created April 12, 2020 16:55
Comparison of task_scheduler_init and task_arena
numberOfProblems = 1000000
problemSize = 4
With 1 threads:
Without memory allocation, grain size = 1, time = 0.226055
Without memory allocation, grain size = 10, time = 0.228282
Without memory allocation, grain size = 100, time = 0.22368
Without memory allocation, grain size = 1000, time = 0.223329
With memory allocation, grain size = 1, time = 0.312074
With memory allocation, grain size = 10, time = 0.312296
With memory allocation, grain size = 100, time = 0.314105
@acxz
acxz / CMakeLists.txt
Created May 23, 2020 16:26
test-numdiff-gtsam
project(test-gtsam)
cmake_minimum_required(VERSION 2.8)
find_package(GTSAM REQUIRED)
include_directories(${GTSAM_INCLUDE_DIR})
add_executable(test-numdiff test-numdiff.cpp)
target_link_libraries(test-numdiff gtsam)
@acxz
acxz / slycot-pip-install-no-cache.txt
Last active October 2, 2020 21:45
slycot-pip-install
2020-10-02T12:58:56,883 Non-user install because user site-packages disabled
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-ephem-wheel-cache-txtvas2y
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Initialized build tracking at /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Created build tracker: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Entered build tracker: /tmp/pip-req-tracker-2fkwv8i5
2020-10-02T12:58:56,928 Created temporary directory: /tmp/pip-install-cqxlrqka
2020-10-02T12:58:56,948 1 location(s) to search for versions of slycot:
2020-10-02T12:58:56,948 * https://pypi.org/simple/slycot/
2020-10-02T12:58:56,948 Fetching project page and analyzing links: https://pypi.org/simple/slycot/
From b88c90ae704e467fd84f80ee3fed134e72ce7dd9 Mon Sep 17 00:00:00 2001
From: acxz <17132214+acxz@users.noreply.github.com>
Date: Mon, 27 Sep 2021 13:35:46 -0400
Subject: [PATCH] updpkg 4.1.0
---
.SRCINFO | 7 +++----
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
From e6db2ed3e1ffc2489223dec84885bcacf702a261 Mon Sep 17 00:00:00 2001
From: acxz <17132214+acxz@users.noreply.github.com>
Date: Mon, 27 Sep 2021 13:41:32 -0400
Subject: [PATCH] updpkg 4.2.0
---
.SRCINFO | 7 +++----
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
@acxz
acxz / update_rocm_pkgs.sh
Last active September 10, 2023 04:13
Script to update PKGBUILD files in the rocm-arch/rocm-arch repo
#!/bin/bash
# Clone the rocm-arch repository if it hasn't been cloned yet
if [ ! -d rocm-arch ]; then
git clone git@github.com:rocm-arch/rocm-arch
fi
# Move to the rocm-arch directory
cd rocm-arch