Thread Cooperation Nowadays, I try to learn CUDA. I follow some books for that. In this post, I use CUDA BY EXAMPLE An introduction to General-Purpose GPU Programming book which is written by Jason Sanders and Edward Kandrot. In this section, I try to learn Thread cooperation topic. First I will try to recode big…
Category: Books Solutions
Parallel Programming in CUDA C | Learn CUDA
Parallel Programming in CUDA C Nowadays, I try to learn CUDA. I follow some books for that. In this post, I use CUDA BY EXAMPLE An introduction to General-Purpose GPU Programming book which is written by Jason Sanders and Edward Kandrot. In this section, I try to learn parallel programming in CUDA C. First I…
CUDA Programming Model | Learn CUDA
This post series is the Solutions of the Professional CUDA C Programming written by John Cheng, Max Grossman and Ty McKercher Chapter 2: CUDA Programming Model In this section, we will learn to Writing a CUDA Program Executing kernel functions Organizing the Cuda threads with grids and blocks Measuring the GPU performance A typical processing…
Heterogeneous Parallel Computing with CUDA | Learn CUDA
This post series is the Solutions of the Professional CUDA C Programming written by John Cheng, Max Grossman and Ty McKercher Chapter 1: Heterogeneous Parallel Computing with CUDA I solve the examples of Chapter 1. You can find solutions at bellow.
Introduction OpenCV | Learning OpenCV3 C++
This post series is the Solutions of the Learning OpenCV 3 written by Adrian Kaehler & Gary Bradski Chapter 2: Introduction OpenCV For this chapter, I prepare Cmake file to build the example code
Install OpenCV | Learning OpenCV3 C++
This post series is the Solutions of the Learning OpenCV 3 written by Adrian Kaehler & Gary Bradski Chapter 1: Overview In this chapter shows how to install OpenCV in your computer. I use Ubuntu OS, so that I write a shell script for the installing OpenCV you can use it easily.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/bin/bash sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install build-essential -y sudo apt-get install cmake -y sudo apt-get install libopenblas-dev -y sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev -y sudo apt-get install libboost-all-dev -y sudo apt-get install libncurses5-dev libncursesw5-dev -y wget https://github.com/opencv/opencv/archive/3.4.0.zip unzip 3.4.0.zip cd opencv-3.4.0 mkdir build cd build cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. make -j8 sudo make install sudo apt-get install libboost-all-dev |
Libraries
Writing a Program | C++
This post series is the Solutions of the Programming — Principles and Practice Using C++ (Second Edition) written by Bjarne Stroustrup Chapter 6: Writing a Program Drill
Nature of Lights | Optics C++
These post series aim to solve examples and problems from Introduction to Optics book which is writen by Frank L. Pedrotti, Leno M. Pedrotti and Leno S. Pedrotti. Chapter 1: Nature of Lights Example 1 An electron is accelerated to a kinetic energy Ek of 2.5 MeV. (a) Determine its relativistic momentum, de Broglie wavelength, and speed. (b)…