Skip to content

Instantly share code, notes, and snippets.

View Muhammad-Yunus's full-sized avatar
:octocat:
Working from home

Muhammad Yunus Muhammad-Yunus

:octocat:
Working from home
View GitHub Profile
@Muhammad-Yunus
Muhammad-Yunus / configure.log
Last active September 20, 2021 01:06
Jetson Nano OpenCV 4.5.3 Configure.log
General configuration for OpenCV 4.5.3 =====================================
Version control: 4.5.3
Extra modules:
Location (extra): /home/jetson/build_opencv/opencv_contrib/modules
Version control (extra): 4.5.3
Platform:
Timestamp: 2021-09-19T12:11:26Z
Host: Linux 4.9.201-tegra aarch64
@Muhammad-Yunus
Muhammad-Yunus / build_opencv_4.5.3.sh
Last active September 19, 2021 12:11
Jetson Nano Build OpenCV 4.5.3 with CUDA + CuDNN + OpenCL + OpenGL + GStreamer enable
#!/usr/bin/env bash
# 2019 Michael de Gans
set -e
# change default constants here:
readonly PREFIX=/usr/local # install prefix, (can be ~/.local for a user install)
readonly DEFAULT_VERSION=4.5.3 # controls the default version (gets reset by the first argument)
readonly CPUS=$(nproc) # controls the number of jobs
@Muhammad-Yunus
Muhammad-Yunus / pocl_1.7_clinfo_jetson_nano.txt
Created September 19, 2021 02:26
clinfo PoCL 1.7 (CUDA enable) in Jetson Nano
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 1.7, Debug+Asserts, LLVM 10.0.0, RELOC, SLEEF, FP16, CUDA, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 2
@Muhammad-Yunus
Muhammad-Yunus / OpenGLHeader.patch
Created September 19, 2021 01:36
Jetson Nano OpenGL Patches
diff --git a/cuda_gl_interop.h b/cuda_gl_interop.h
index 0f4aa17..e8c538c 100644
--- a/cuda_gl_interop.h
+++ b/cuda_gl_interop.h
@@ -59,13 +59,13 @@
#else /* __APPLE__ */
-#if defined(__arm__) || defined(__aarch64__)
-#ifndef GL_VERSION
@Muhammad-Yunus
Muhammad-Yunus / build_opencv_4.5.3.sh
Last active July 9, 2023 19:26
Build OpenCV 4.5.3 on Jetson Nano (with upgraded OS to Ubuntu 16.04) + CUDA 6.4 Enable
#!/usr/bin/env bash
# ORIGINAL AUTHOR : 2019 Michael de Gans (https://github.com/mdegans/nano_build_opencv)
set -e
# change default constants here:
readonly PREFIX=/usr # install prefix, (can be ~/.local for a user install)
readonly DEFAULT_VERSION=4.5.3 # controls the default version (gets reset by the first argument)
readonly CPUS=$(nproc) # controls the number of jobs
@Muhammad-Yunus
Muhammad-Yunus / pocl_1.7_clinfo.txt
Last active September 12, 2021 05:22
X96 MAX+ build pocl
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 1.7, Debug+Asserts, LLVM 11.0.1, RELOC, SLEEF, FP16, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 1
@Muhammad-Yunus
Muhammad-Yunus / openmp_test.cpp
Created September 8, 2021 15:26
Check OpenMP Installed on Linux Systems,
// SOURCE : https://stackoverflow.com/questions/1304363/how-to-check-the-version-of-openmp-on-linux
// BUILD : g++ -std=c++11 -fopenmp openmp_test.cpp -o openmp_test
// RUN : ./openmp_test
#include <unordered_map>
#include <iostream>
#include <omp.h>
int main(int argc, char *argv[])
{
@Muhammad-Yunus
Muhammad-Yunus / pocl_clinfo.txt
Last active October 16, 2021 14:44
PoCL 1.7 clinfo Jetson TK1 CPU ARM Cortex A15 + GPU NVIDIA GK20a (CUDA 6.5 Enable)
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 1.7, Debug+Asserts, LLVM 8.0.0, RELOC, SLEEF, FP16, CUDA, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 2
@Muhammad-Yunus
Muhammad-Yunus / installGStreamer-1.0.sh
Created September 7, 2021 00:35 — forked from jetsonhacks/installGStreamer-1.0.sh
Install Gstreamer 1.0 on the NVIDIA Jetson TK1
#!/bin/sh
# Install Gstreamer 1.0 on the NVIDIA Jetson TK1
apt-get install gstreamer1.0-tools gstreamer1.0-alsa \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav -y
@Muhammad-Yunus
Muhammad-Yunus / config.mk
Created August 12, 2021 02:40
Apache MXNet 1.6.0 config.mk for Jetson TK1
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#