View enable_fan.sh
#!/bin/bash
sudo bash -c 'echo 255 > /sys/kernel/debug/tegra_fan/target_pwm'
View sunbcnn_test.py
#!/usr/bin/env python
import numpy as np
import os
import sys
import argparse
import time
import caffe
View opencv3.3_jetsontx2_build-ubuntu16.04_with_cuda.sh
#!/bin/bash
SOURCE_DIR="echo $(cd $(dirname $0);pwd)"
BUILD_DIR=${SOURCE_DIR}/build
GENERATOR_NAME="Unix Makefiles"
mkdir build
cd build
cmake \
View opencv3.3_build_vs2015_x64-with-cuda.bat
:: setting of the environment variables
set SOURCE_DIR=%~dp0
set BUILD_DIR=%SOURCE_DIR%\build
set INSTALL_DIR=%BUILD_DIR%\install
set VC_VERSION_NUM=14
set VCVARSALL_BAT="C:\Program Files (x86)\Microsoft Visual Studio %VC_VERSION_NUM%.0\VC\vcvarsall.bat"
set ARCH=amd64
set GENERATOR_NAME=Visual Studio %VC_VERSION_NUM% Win64
set TBB_ROOT=C:/dev/tbb2017_20170604oss
View opencv3.3_build_vs2015_x64.bat
:: setting of the environment variables
set SOURCE_DIR=%~dp0
set BUILD_DIR=%SOURCE_DIR%\build
set INSTALL_DIR=%BUILD_DIR%\install
set VC_VERSION_NUM=14
set VCVARSALL_BAT="C:\Program Files (x86)\Microsoft Visual Studio %VC_VERSION_NUM%.0\VC\vcvarsall.bat"
set ARCH=amd64
set GENERATOR_NAME=Visual Studio %VC_VERSION_NUM% Win64
set TBB_ROOT=C:/dev/tbb2017_20170604oss
View copy_with_roi.cpp
#include <opencv2/core.hpp>
int main(int argc, const char* argv[])
{
cv::Mat img(cv::Size(512, 512), CV_8UC3, cv::Scalar(0, 0, 255));
cv::Mat dst;
cv::Rect empty_roi(0, 0, 0, 0);
img(empty_roi).copyTo(dst);
return 0;
View vis_mesh_sample.cpp
#include <opencv2/viz.hpp>
#include <iostream>
int main(int argc, const char* argv[])
{
if(argc != 2)
{
std::cout << "Usage: " << argv[0] << " <ply filename>" << std::endl;
return -1;
}
View opencv320_with_cuda_contrib.props
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<OPENCV_INSTALL_DIR>C:\dev\opencv-3.2.0\build\install</OPENCV_INSTALL_DIR>
</PropertyGroup>
<!-- Debug|Win32 -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
View magma_build-ubuntu16.04.sh
#!/bin/bash
SOURCE_DIR="echo $(cd $(dirname $0);pwd)"
BUILD_DIR=${SOURCE_DIR}/build
GENERATOR_NAME="Unix Makefiles"
mkdir build
cd build
cmake \
View magma-2.2.0_support_pascal.patch
--- org/magma-2.2.0/CMakeLists.txt 2016-11-21 10:20:02.000000000 +0900
+++ changed/magma-2.2.0/CMakeLists.txt 2017-03-20 01:25:52.329109000 +0900
@@ -129,6 +129,10 @@
if ( ${GPU_TARGET} MATCHES Maxwell )
set( GPU_TARGET "${GPU_TARGET} sm50" )
endif()
+
+ if ( ${GPU_TARGET} MATCHES Pascal )
+ set( GPU_TARGET "${GPU_TARGET} sm61" )
+ endif()