Skip to content

Instantly share code, notes, and snippets.

Avatar
💭

Abishek Muthian heavyinfo

💭
View GitHub Profile
@heavyinfo
heavyinfo / COVID19-temperature-correlation.ipynb
Last active Mar 12, 2020
Plotting new daily confirmed COVID-19 cases against local highest temperature on that day.
View COVID19-temperature-correlation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heavyinfo
heavyinfo / rules_boost-context-thread-arm64.patch
Last active Feb 26, 2020
Patch to fix bazel rule issues for boost library in ARM (aarch64)
View rules_boost-context-thread-arm64.patch
This patch fixes ARM (aarch64) bazel build rules for boost libraries when
building ray as discussed in this issue - https://github.com/ray-project/ray/issues/7184.
Patch v2 by Abishek Muthian (@heavyinfo).
--- BUILD.boost 2020-02-23 09:03:02.937872389 +0530
+++ BUILD.boost 2020-02-26 07:18:26.287128627 +0530
@@ -49,6 +49,15 @@
)
config_setting(
+ name = "linux_aarch64",
@heavyinfo
heavyinfo / Ray_ARM64.md
Last active Feb 15, 2021
Build and Install Ray on ARM (aarch64)
View Ray_ARM64.md

Dependencies

Only dependencies which aren't highly likely to be featured in a ARM development environment are featured here, Obvious dependencies such as Python3, Python2, pip, wheel, GCC etc. aren't covered here.

Bazel

Note : Use bazel 1.x.x for Ray as 2.x.x is not supported.

sudo apt-get install build-essential openjdk-8-jdk unzip
export JAVA_HOME="/usr/bin/java"
wget https://github.com/bazelbuild/bazel/releases/download/1.0.0/bazel-1.0.0-dist.zip
unzip bazel-1.0.0-dist.zip
@heavyinfo
heavyinfo / cudf_ARM64_jetson.md
Last active Jan 31, 2021
Installing cudf on ARM(aarch64)[Jetson Nano]
View cudf_ARM64_jetson.md

My setup

I'm using Nvidia Jetson nano.

Quad-core ARM® Cortex®-A57 MPCore processor

NVIDIA Maxwell™ architecture with 128 NVIDIA CUDA® cores

4 GB 64-bit LPDDR4 1600MHz - 25.6 GB/s

Ubuntu 18.04 LTS

@heavyinfo
heavyinfo / pytorch_vision_spacy_torchtext_jetson_nano.sh
Last active Feb 15, 2021
Installing PyTorch, torchvision, spaCy, torchtext on Jetson Nanon [ARM]
View pytorch_vision_spacy_torchtext_jetson_nano.sh
#!/bin/bash
# This script will install pytorch, torchvision, torchtext and spacy on nano.
# If you have any of these installed already on your machine, you can skip those.
sudo apt-get -y update
sudo apt-get -y upgrade
#Dependencies
sudo apt-get install python3-setuptools
@heavyinfo
heavyinfo / build-arrow-armv8.md
Last active Feb 12, 2021
Building Apache Arrow and pyarrow on ARMv8
View build-arrow-armv8.md

Why build Apache Arrow from source on ARM?

Apache Arrow is an in-memory data structure used in several projects. It's python module can be used to save what's on the memory to the disk via python code, commonly used in the Machine Learning projects. With low RAM, ARM devices can make use of it but there seems to be an configuration error with the packaged binaries as of version 0.15.1 and so we're forced to build and install from the source.

The installation build steps are based on official guidelines but modified for ARM and has taken clues from building Ray for ARM.

My setup

I'm using Nvidia Jetson nano.

Quad-core ARM® Cortex®-A57 MPCore processor