Skip to content

Instantly share code, notes, and snippets.

@sub-mod
sub-mod / Entitled_builds.md
Last active June 26, 2023 12:42
Entitled Builds on non-RHEL hosts
@sub-mod
sub-mod / tf_torch_proc_maps.md
Last active March 24, 2020 15:23
tf/pytorch proc maps
# cat /proc/12249/maps
00400000-00401000 r-xp 00000000 fd:03 1734922135                         /opt/rh/rh-python36/root/usr/bin/python3.6
00601000-00602000 r--p 00001000 fd:03 1734922135                         /opt/rh/rh-python36/root/usr/bin/python3.6
00602000-00603000 rw-p 00002000 fd:03 1734922135                         /opt/rh/rh-python36/root/usr/bin/python3.6
015fa000-175d0000 rw-p 00000000 00:00 0                                  [heap]
200000000-200200000 ---p 00000000 00:00 0
200200000-200400000 rw-s 00000000 00:06 35902                            /dev/nvidiactl
200400000-200600000 rw-s 00000000 00:06 35903                            /dev/nvidia0
200600000-203e00000 rw-s 00000000 00:06 35902                            /dev/nvidiactl
@sub-mod
sub-mod / tekton_issue.md
Created March 23, 2020 21:52
tekton_issue

some thing like this would cause invalid input params: param types don''t match the user-specified type in pipeline webhook controller which simply can't parse the type

---
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: params-example
spec:
@sub-mod
sub-mod / tf_2_10_cuda10_0.md
Last active March 23, 2020 21:00
Using Tensorflow 2.1.0 with CUDA 10.0

Use cuda:10.0-cudnn7-devel-centos7 container

docker run -it -u 0 docker.io/nvidia/cuda:10.0-cudnn7-devel-centos7 /bin/bash

Setup LD_LIBRARY_PATH and Links

yum install -y centos-release-scl
yum install -y devtoolset-7 rh-python36 mlocate
source scl_source enable devtoolset-7 rh-python36
@sub-mod
sub-mod / object_detection_mlperf.txt
Last active March 9, 2020 18:14
object_detection mlperf
// use nvidia/cuda:10.0-cudnn7-devel-centos7 as BASE
// Ensure below paths are set to access nvcc at $CUDA_HOME/bin
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
export PATH=$PATH:$CUDA_HOME/bin
// Install mentions GCC>=4.9. update to devtoolset-7
// use python 3.6
@sub-mod
sub-mod / crc1_14_0_F31.md
Last active May 1, 2023 09:26
Setup CodeReady Containers on Remote Server and connect from Laptop 4.2 - Fedora 31
@sub-mod
sub-mod / tfodapi.txt
Created January 6, 2020 21:00
tfodapi.txt
INFO:tensorflow:Restoring parameters from ./models/model.ckpt-500
I0106 15:55:19.536532 140690754516544 saver.py:1284] Restoring parameters from ./models/model.ckpt-500
INFO:tensorflow:Running local_init_op.
I0106 15:55:20.502651 140690754516544 session_manager.py:500] Running local_init_op.
INFO:tensorflow:Done running local_init_op.
I0106 15:55:20.614528 140690754516544 session_manager.py:502] Done running local_init_op.
INFO:tensorflow:Performing evaluation on 22 images.
I0106 15:55:23.292874 140683104995072 coco_evaluation.py:205] Performing evaluation on 22 images.
creating index...
index created!
@sub-mod
sub-mod / SharedInformer.md
Created December 29, 2019 23:46 — forked from songbinliu/SharedInformer.md
Notes about Kubernetes SharedInformer

Kubernetes SharedInformer

Overview

SharedInformer has a shared data cache, and is able to distribute notifications for changes to the cache to multiple listeners who have registered to it. SharedInformer is also a "Producer-Consumer" framework, using Controller as Producer to produce the Events (, or changes to the cache).

@sub-mod
sub-mod / Reflector.md
Created December 29, 2019 23:45 — forked from songbinliu/Reflector.md
description the implementation and usage of kubernetes reflector.

Kubernetes Reflector

Reflector is a key component for Kubernetes clients, kube-scheduler and Replication Controller. Reflector is in the middle between client and Kubernetes API-server. It provides a framework to monitor the changes of the Kubernetes cluster.

Definition of Reflector

Here is the definition of Reflector. reflector define

As shown in the definition, there are two important compoents of a Reflector: