Skip to content

Instantly share code, notes, and snippets.

View vedranmiletic's full-sized avatar

Vedran Miletić vedranmiletic

View GitHub Profile
@vedranmiletic
vedranmiletic / ns-3-wscripts-1.9.patch
Last active July 23, 2017 19:08
ns-3 waf 1.9 upgrade patch
diff --git a/contrib/wscript b/contrib/wscript
--- a/contrib/wscript
+++ b/contrib/wscript
@@ -287,7 +287,7 @@
pymod.env.append_value('LINKFLAGS', '-Wl,-Bdynamic,--no-whole-archive')
defines = list(pymod.env['DEFINES'])
defines.extend(['NS_DEPRECATED=', 'NS3_DEPRECATED_H'])
- if Options.platform == 'win32':
+ if Utils.unversioned_sys_platform() == 'win32':
try:
@vedranmiletic
vedranmiletic / gist:ada4583f26e115dc7e2d780bd7994026
Created February 24, 2017 20:33
OpenMM TestOpenCLAndersenThermostat Valgrind run
$ valgrind --leak-check=yes ./TestOpenCLAndersenThermostat
==18060== Memcheck, a memory error detector
==18060== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==18060== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==18060== Command: ./TestOpenCLAndersenThermostat
==18060==
OpenCL internal error: Shader Stats: SGPRS: 14 VGPRS: 10 Code Size: 10796 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0
OpenCL internal error: Shader Stats: SGPRS: 38 VGPRS: 44 Code Size: 6368 LDS: 0 Scratch: 0 Max Waves: 5 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0
OpenCL internal error: Shader Stats: SGPRS: 22 VGPRS: 26 Code Size: 2160 LDS: 0 Scratch: 0 Max Waves: 9 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0
OpenCL internal error: Shader Stats: SGPRS: 14 VGPRS: 10 Code Size: 10796 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0
This file has been truncated, but you can view the full file.
:-) GROMACS - gmx mdrun, 2016.2-dev-20170105-4feb0be (-:
GROMACS is written by:
Emile Apol Rossen Apostolov Herman J.C. Berendsen Par Bjelkmar
Aldert van Buuren Rudi van Drunen Anton Feenstra Gerrit Groenhof
Christoph Junghans Anca Hamuraru Vincent Hindriksen Dimitrios Karkoulis
Peter Kasson Jiri Kraus Carsten Kutzner Per Larsson
Justin A. Lemkul Magnus Lundborg Pieter Meulenhoff Erik Marklund
Teemu Murtola Szilard Pall Sander Pronk Roland Schulz
Alexey Shvetsov Michael Shirts Alfons Sijbers Peter Tieleman
This file has been truncated, but you can view the full file.
:-) GROMACS - gmx mdrun, 2016.2-dev-20170105-4feb0be (-:
GROMACS is written by:
Emile Apol Rossen Apostolov Herman J.C. Berendsen Par Bjelkmar
Aldert van Buuren Rudi van Drunen Anton Feenstra Gerrit Groenhof
Christoph Junghans Anca Hamuraru Vincent Hindriksen Dimitrios Karkoulis
Peter Kasson Jiri Kraus Carsten Kutzner Per Larsson
Justin A. Lemkul Magnus Lundborg Pieter Meulenhoff Erik Marklund
Teemu Murtola Szilard Pall Sander Pronk Roland Schulz
Alexey Shvetsov Michael Shirts Alfons Sijbers Peter Tieleman
This file has been truncated, but you can view the full file.
:-) GROMACS - gmx mdrun, 2016.2-dev-20170105-4feb0be (-:
GROMACS is written by:
Emile Apol Rossen Apostolov Herman J.C. Berendsen Par Bjelkmar
Aldert van Buuren Rudi van Drunen Anton Feenstra Gerrit Groenhof
Christoph Junghans Anca Hamuraru Vincent Hindriksen Dimitrios Karkoulis
Peter Kasson Jiri Kraus Carsten Kutzner Per Larsson
Justin A. Lemkul Magnus Lundborg Pieter Meulenhoff Erik Marklund
Teemu Murtola Szilard Pall Sander Pronk Roland Schulz
Alexey Shvetsov Michael Shirts Alfons Sijbers Peter Tieleman
This file has been truncated, but you can view the full file.
:-) GROMACS - gmx mdrun, 2016.2-dev-20170105-4feb0be (-:
GROMACS is written by:
Emile Apol Rossen Apostolov Herman J.C. Berendsen Par Bjelkmar
Aldert van Buuren Rudi van Drunen Anton Feenstra Gerrit Groenhof
Christoph Junghans Anca Hamuraru Vincent Hindriksen Dimitrios Karkoulis
Peter Kasson Jiri Kraus Carsten Kutzner Per Larsson
Justin A. Lemkul Magnus Lundborg Pieter Meulenhoff Erik Marklund
Teemu Murtola Szilard Pall Sander Pronk Roland Schulz
Alexey Shvetsov Michael Shirts Alfons Sijbers Peter Tieleman
execve("/usr/bin/systemd-tmpfiles", ["systemd-tmpfiles", "--create", "--clean", "--remove"], [/* 23 vars */]) = 0
brk(NULL) = 0x7f5f2000
uname({sysname="Linux", nodename="f1.miletic.net", ...}) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fe2000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/systemd/tls/v7l/vfp/libsystemd-shared-231.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/systemd/tls/v7l/vfp", 0xbedbbc18) = -1 ENOENT (No such file or directory)
open("/usr/lib/systemd/tls/v7l/libsystemd-shared-231.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/systemd/tls/v7l", 0xbedbbc18) = -1 ENOENT (No such file or directory)
open("/usr/lib/systemd/tls/vfp/libsystemd-shared-231.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[root@f1 ~]# SYSTEMD_LOG_LEVEL=debug systemd-tmpfiles --create --clean --remove
Reading config file "/usr/lib/tmpfiles.d/dnf.conf".
Reading config file "/usr/lib/tmpfiles.d/etc.conf".
Reading config file "/usr/lib/tmpfiles.d/home.conf".
Reading config file "/usr/lib/tmpfiles.d/initscripts.conf".
Reading config file "/usr/lib/tmpfiles.d/iscsi.conf".
Reading config file "/usr/lib/tmpfiles.d/journal-nocow.conf".
[/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to replace specifiers: /var/log/journal/%m
Reading config file "/run/tmpfiles.d/kmod.conf".
Ignoring entry c! "/dev/autofs" because --boot is not specified.
@vedranmiletic
vedranmiletic / gmx-OpenCL-kernel-AMD.ll
Created March 27, 2016 12:55
GROMACS OpenCL kernel for AMD in LLVM IR
This file has been truncated, but you can view the full file.
; ModuleID = 'input.cl'
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-p24:64:64-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
target triple = "amdgcn--"
%struct.nbnxn_sci_t = type { i32, i32, i32, i32 }
%struct.nbnxn_cj4_t = type { [4 x i32], [2 x %struct.nbnxn_im_ei_t] }
%struct.nbnxn_im_ei_t = type { i32, i32 }
%struct.nbnxn_excl_t = type { [32 x i32] }
; Function Attrs: nounwind
@vedranmiletic
vedranmiletic / libclc-add-tonga.patch
Created December 10, 2015 19:40
Provide symlink to amdgcn LLVM IR bytecode for Tonga GPUs
diff --git a/configure.py b/configure.py
index 287f87f..93ff839 100755
--- a/configure.py
+++ b/configure.py
@@ -96,7 +96,7 @@ available_targets = {
{'gpu' : 'barts', 'aliases' : ['turks', 'caicos']},
{'gpu' : 'cayman', 'aliases' : ['aruba']}]},
'amdgcn--': { 'devices' :
- [{'gpu' : 'tahiti', 'aliases' : ['pitcairn', 'verde', 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii','mullins']}]},
+ [{'gpu' : 'tahiti', 'aliases' : ['pitcairn', 'verde', 'oland', 'hainan', 'bonaire', 'kabini', 'kaveri', 'hawaii', 'mullins', 'tonga']}]},