Skip to content

Instantly share code, notes, and snippets.

View minrk's full-sized avatar

Min RK minrk

View GitHub Profile
diff --color -u impi-devel-2021.12.0-h57928b3_537/Library/include/mpi.h impi-devel-2021.13.1-h57928b3_767/Library/include/mpi.h
--- impi-devel-2021.12.0-h57928b3_537/Library/include/mpi.h 2024-02-14 01:18:00
+++ impi-devel-2021.13.1-h57928b3_767/Library/include/mpi.h 2024-07-02 05:37:19
@@ -261,6 +261,7 @@
#define MPI_C_LONG_DOUBLE_COMPLEX ((MPI_Datatype)0x4c001042)
/* other extension types */
#define MPIX_C_FLOAT16 ((MPI_Datatype)MPI_DATATYPE_NULL)
+#define MPIX_C_BF16 ((MPI_Datatype)MPI_DATATYPE_NULL)
#ifdef MPICH_DEFINE_ATTR_TYPE_TYPES
import time
from socket import fromfd, AF_UNIX, SOCK_STREAM
from threading import Thread
import anyio
import zmq
async def async_recv(sock, flags=0):
if flags & zmq.NOBLOCK:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
"""
Compare slug changes for kubespawner 7
To be run in an active jupyterhub deployment, via:
cat compare_slugs.py | kubectl exec -it $(kubectl get pod -l component=hub -o name) -- python3 -
"""
import argparse
import requests
def get_tags(repo):
"""Yield all tags for a repo on quay.io
Iterates through paginated requests
"""
next_url = f"https://quay.io/v2/{repo}/tags/list"
while next_url:
@minrk
minrk / test.py
Last active August 22, 2024 10:55
zmqtest.py
import zmq
print("imported")
print("has", zmq.has("ipc"))
with zmq.Context() as ctx:
print("context")
with ctx.socket(zmq.PUSH) as push, ctx.socket(zmq.PULL) as pull:
print("sockets")
url = "tcp://127.0.0.1:5555"
push.bind(url)
@ARTICLE{test,
author={Last Name, First},
journal={Computing in Science {\&} Engineering},
title={Thing \& Other thing},
year={3048},
volume={1},
number={1},
pages={1-2},
keywords={},
}
import asyncio
import pytest_asyncio
@pytest_asyncio.fixture(scope="module", loop_scope="module")
async def current_loop():
return asyncio.get_running_loop()
@pytest_asyncio.fixture(loop_scope="module", autouse=True)
async def cleanup_after():
yield
FROM python:3.12
RUN python3 -m pip install weasyprint wurlitzer jupyterlab
RUN python3 -c 'import weasyprint'
ENV HOME=/home/test
# make an unwritable cache directory
RUN useradd test \
&& mkdir -p $HOME/.fontconfig \
&& mkdir -p $HOME/.cache \
&& chown test $HOME
USER test
================================================================================
================================================================================
linux-armv7l
================================================================================
================================================================================
win-32
================================================================================
================================================================================
linux-ppc64le
linux-ppc64le::fenics-dolfinx-0.8.0-py311hd7d00f9_1.conda