# 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
Here is an example of doing it on Fedora.
- Go to https://access.redhat.com/management/systems/
- Click on your system which has subscription attached.
- Download the subscription certificate to your non-RHEL host(laptop).
- Extract all files and then only place the *.pem file to e.g. ${ENT_DIR}/${ID}.pem
- more info here https://www.openshift.com/blog/how-to-use-entitled-image-builds-to-build-drivercontainers-with-ubi-on-openshift
laptop# cat /etc/redhat-release
Use OMP_NUM_THREADS=1
for Running Pytorch on Openshift with 1CPU
Else MKL will spawn threads for all the cpus it can see from the pod.
apiVersion: v1
kind: Template
metadata:
name: playground
labels:
app: playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```--- | |
apiVersion: tekton.dev/v1alpha1 | |
kind: Task | |
metadata: | |
name: ic-buildah1 | |
spec: | |
inputs: | |
params: | |
- name: BUILDER_IMAGE | |
description: The location of the buildah builder image. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: image.openshift.io/v1 | |
kind: ImageStream | |
metadata: | |
name: test-bc-sample | |
spec: | |
lookupPolicy: | |
local: false | |
--- | |
kind: "BuildConfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: tekton.dev/v1alpha1 | |
kind: ClusterTask | |
metadata: | |
name: od-buildah | |
spec: | |
inputs: | |
params: | |
- name: BUILDER_IMAGE | |
description: The location of the buildah builder image. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tensorflow/lite/experimental/ruy/platform.h b/tensorflow/lite/experimental/ruy/platform.h | |
index 7a83173..36aaa95 100644 | |
--- a/tensorflow/lite/experimental/ruy/platform.h | |
+++ b/tensorflow/lite/experimental/ruy/platform.h | |
@@ -55,7 +55,7 @@ limitations under the License. | |
// TODO(b/138433137) Select AVX-512 at runtime rather than via compile options. | |
#if defined(__AVX512F__) && defined(__AVX512DQ__) && defined(__AVX512CD__) && \ | |
defined(__AVX512BW__) && defined(__AVX512VL__) | |
-#define RUY_DONOTUSEDIRECTLY_AVX512 1 | |
+#define RUY_DONOTUSEDIRECTLY_AVX512 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |