Skip to content

Instantly share code, notes, and snippets.

View Flamefire's full-sized avatar

Alexander Grund Flamefire

View GitHub Profile
@Flamefire
Flamefire / main.cpp
Last active July 24, 2018 10:49
Test for sockets. Compile with `g++ main.cpp -DUSE_THREAD=0 -std=c++11`
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netdb.h>
#include <unistd.h>
#include <cassert>
#include <cstring>
#include <iostream>
@Flamefire
Flamefire / deptree2exts_list.py
Last active September 12, 2023 11:07 — forked from boegel/deptree2exts_list.py
Find order of dependencies of a python package, put both into a PATH accessible folder (e.g. ~/.local/bin) and make executable
#!/usr/bin/env python
import json
import sys
import pkg_resources
from pprint import pprint
if len(sys.argv) != 3:
sys.stderr.write("ERROR: Usage: %s <path to JSON file with output of `pipdeptree -j <pkg>`> <pkg name>\n" % sys.argv[0])
sys.exit(1)
easyblock = 'MesonNinja'
name = 'Mesa'
version = '19.1.7'
homepage = 'https://www.mesa3d.org/'
description = """Mesa is an open-source implementation of the OpenGL specification -
a system for rendering interactive 3D graphics."""
toolchain = {'name': 'GCCcore', 'version': '8.3.0'}
@Flamefire
Flamefire / pep8.diff
Created March 26, 2020 11:09
pep8 diff
diff --git a/contrib/hooks/hpc2n_hooks.py b/contrib/hooks/hpc2n_hooks.py
index ad93fe88e..4e00513ba 100644
--- a/contrib/hooks/hpc2n_hooks.py
+++ b/contrib/hooks/hpc2n_hooks.py
@@ -13,6 +13,8 @@ from easybuild.tools.systemtools import get_shared_lib_ext
# Add/remove dependencies and/or patches
# Access to the raw values before templating and such.
+
+
#!/usr/bin/env bash
set -euo pipefail
git_repo="/home/alex/git/pytorch"
cmd_var="local_extract_cmd_pattern"
sub_cmd_var="local_mkdir_and_extract_cmd_pattern"
thirdparty_dir="third_party"
thirdparty_var="local_pytorchthirdpartydir"
# Repo names for dependencies that should be ignored
@Flamefire
Flamefire / easybuild_test_report_2241_easybuilders_preasybuild-easyblocks_20201719-UTC-12-17-18.md
Created November 19, 2020 12:17
EasyBuild test report for easybuilders/easybuild-easyblocks PR #2241

Test result

Build succeeded for 2 out of 5 (5 easyconfigs in total)

Overview of tested easyconfigs (in order)

@Flamefire
Flamefire / easybuild_test_report_12061_easybuilders_preasybuild-easyconfigs_20215829-UTC-21-58-25.md
Created January 29, 2021 21:58
EasyBuild test report for easybuilders/easybuild-easyconfigs PR #12061

Test report for easybuilders/easybuild-easyconfigs#12061

Test result

Build succeeded for 6 out of 6 (5 easyconfigs in total)

Overview of tested easyconfigs (in order)

  • SUCCESS Check-0.15.2-GCCcore-8.3.0.eb
  • SUCCESS GDRCopy-2.1-GCCcore-8.3.0-CUDA-10.1.243.eb
  • SUCCESS libfabric-1.11.0-GCCcore-8.3.0.eb
  • SUCCESS UCX-1.9.0-GCCcore-8.3.0-CUDA-10.1.243.eb
@Flamefire
Flamefire / easybuild_test_report_12061_easybuilders_preasybuild-easyconfigs_20213030-UTC-04-30-19.md
Created January 30, 2021 04:30
EasyBuild test report for easybuilders/easybuild-easyconfigs PR #12061

Test report for easybuilders/easybuild-easyconfigs#12061

Test result

Build succeeded for 7 out of 7 (5 easyconfigs in total)

Overview of tested easyconfigs (in order)

  • SUCCESS Check-0.15.2-GCCcore-8.3.0.eb
  • SUCCESS GDRCopy-2.1-GCCcore-8.3.0-CUDA-10.1.243.eb
  • SUCCESS libfabric-1.11.0-GCCcore-8.3.0.eb
  • SUCCESS UCX-1.9.0-GCCcore-8.3.0-CUDA-10.1.243.eb
@Flamefire
Flamefire / Perl-5.32.0-GCCcore-10.2.0_partial.log
Created April 13, 2021 13:04
(partial) EasyBuild log for failed build of /tmp/easybuild-tmp/eb-NirnoI/files_pr12575/p/Perl/Perl-5.32.0-GCCcore-10.2.0.eb (PR #12575) (easyblock PR #2386)
== 2021-04-13 15:04:11,739 tools.py:294 INFO Also considering installation prefix /home/h3/s3248973/.local/EasyBuildDev (via resolved path to 'eb')...
== 2021-04-13 15:04:11,741 easyblock.py:749 INFO Found file YAML-1.30.tar.gz at /scratch/ws/1/s3248973-EasyBuild/sources/p/Perl/extensions/YAML-1.30.tar.gz
== 2021-04-13 15:04:11,779 easyblock.py:606 INFO md5 checksum for /scratch/ws/1/s3248973-EasyBuild/sources/p/Perl/extensions/YAML-1.30.tar.gz: 2c861f02e091787c7fe115ec20d3b9b3
== 2021-04-13 15:04:11,781 easyblock.py:606 INFO sha256 checksum for /scratch/ws/1/s3248973-EasyBuild/sources/p/Perl/extensions/YAML-1.30.tar.gz: 5030a6d6cbffaf12583050bf552aa800d4646ca9678c187add649227f57479cd
== 2021-04-13 15:04:11,781 easyblock.py:612 INFO Checksum for extension source YAML-1.30.tar.gz verified
== 2021-04-13 15:04:11,782 easyblock.py:493 INFO Fetched extension patches: []
== 2021-04-13 15:04:11,782 tools.py:270 INFO Found location to 'eb' script via $EB_SCRIPT_PATH: /home/s3248973/.local/EasyBuildDev/easybuild-frame
@Flamefire
Flamefire / easybuild_test_report_12575_easybuilders_preasybuild-easyconfigs_20210413-UTC-13-04-18.md
Created April 13, 2021 13:04
EasyBuild test report for easybuilders/easybuild-easyconfigs PR #12575