Skip to content

Instantly share code, notes, and snippets.

Pieter Noordhuis pietern

Block or report user

Report or block pietern

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nanomsg_pub.py
#!/usr/bin/env python
from nanomsg import Socket, PUB
import time
import sys
pub = Socket(PUB)
pub.bind('tcp://127.0.0.1:5000')
# Publishes 1MB of data per second.
View gist:34e4a287aa1753e5547b9ffb3726c2f6
2018-02-19T22:28:27Z [monitor] gain: 2.55, freq: -930.8, omega: 2.589, vit(avg): 255, rs(sum): 46, packets: 59, drops: 0
2018-02-19T22:28:28Z [monitor] gain: 2.55, freq: -921.7, omega: 2.589, vit(avg): 247, rs(sum): 40, packets: 55, drops: 0
2018-02-19T22:28:29Z [monitor] gain: 2.57, freq: -904.6, omega: 2.589, vit(avg): 253, rs(sum): 34, packets: 56, drops: 0
2018-02-19T22:28:30Z [monitor] gain: 2.59, freq: -910.9, omega: 2.589, vit(avg): 255, rs(sum): 53, packets: 58, drops: 0
2018-02-19T22:28:31Z [monitor] gain: 2.59, freq: -891.6, omega: 2.589, vit(avg): 252, rs(sum): 56, packets: 56, drops: 0
2018-02-19T22:28:32Z [monitor] gain: 2.59, freq: -931.1, omega: 2.589, vit(avg): 251, rs(sum): 53, packets: 56, drops: 0
2018-02-19T22:28:33Z [monitor] gain: 2.59, freq: -918.9, omega: 2.589, vit(avg): 260, rs(sum): 54, packets: 58, drops: 0
2018-02-19T22:28:34Z [monitor] gain: 2.57, freq: -901.9, omega: 2.589, vit(avg): 288, rs(sum): 97, packets: 56, drops: 0
2018-02-
View gist:5c697623042ead6e1c93959e347bc3f9
https://gist.github.com/pietern/90b87f9ae3ef9ec37caaeff1521d9b6f
View gist:90b87f9ae3ef9ec37caaeff1521d9b6f
pi@goes16:~ $ ./benchmark
AGC (block size=131072)
Time spent in work(): 3.994s
Time per block: 1844784ns
Samples per second: 71.050M
Costas (block size=131072)
Time spent in work(): 3.998s
Time per block: 6500052ns
Samples per second: 20.165M
FIR (N=31, block size=131072)
View allreduce_loop.py
#!/usr/bin/env python
#
# allreduce_loop.py
#
# Showcase for how to use Gloo collectives from Caffe2.
# For rendezvous, this example can use a shared filesystem, Redis, or MPI.
#
# To use a shared filesystem for rendezvous, use:
#
# python ./allreduce_loop.py \
View foo.md

Test

My list:

  1. foo
  2. bar
  3. qux
View ompi-ipv6-link-local.patch
View ompi-fix-ipv6.patch
commit 19917b7bc38c4ffe6975c25ae76d31fb9f582dfd
Author: Pieter Noordhuis <pietern@fb.com>
Date: Tue Aug 16 19:29:19 2016 -0700
Fix IPv6 supporting in OOB and TCP BTL
diff --git a/1.10.2/src/openmpi-1.10.2/ompi/mca/btl/tcp/btl_tcp_endpoint.c b/1.10.2/src/openmpi-1.10.2/ompi/mca/btl/tcp/btl_tcp_endpoint.c
index c444390..7be03a7 100644
--- a/1.10.2/src/openmpi-1.10.2/ompi/mca/btl/tcp/btl_tcp_endpoint.c
+++ b/1.10.2/src/openmpi-1.10.2/ompi/mca/btl/tcp/btl_tcp_endpoint.c
View lambda.diff
diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.java
index ae7392a..efa985f 100644
--- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.java
+++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/LambdaHandler.java
@@ -47,17 +47,26 @@ public class LambdaHandler extends AbstractExpressionHandler {
@Override
protected IndentLevel getLevelImpl() {
- // If the start of the lambda isn't the first element on the line,
- // use the start of the line as the reference indentation level.
You can’t perform that action at this time.