Git Product home page Git Product logo

cuda_image_filtering_constant's Introduction

A. Please check out the followings before you compile the programs by make:

(1) Make sure you installed the CUDA toolkit and CUDA sample programs correctly.

(2) Install libtiff, libpng and libjpeg/libjpeg-turbo, if you don't find them.

(3) Check the compute capability of your GPU by the site: https://developer.nvidia.com/cuda-gpus, or the command "deviceQuery" distributed with the CUDA sample programs.

(4) Change the macro "CUDA_INCFLAG" in the Makefile to the path for the include files of the CUDA sample program in your system, e.g., /home/username/NVIDIA_CUDA-9.2_Samples/common/inc, /usr/local/NVIDIA_CUDA-9.2_Samples/common/inc. Make sure the permission of the directory.

(5) Add the compute capability of your GPU to the macro "CFLAGS" in the Makefile. For example, if the compute capability is 7.0, you have to add "-gencode arch=compute_70,code=sm_70".

B. You can test the command "cuda_image_filtering_constant" as follows:

   cuda_image_filtering_constant scene2_fullHD.png gradient_filter.dat gradient

The outputs, gradient_CPU.png and gradient_GPU.png, are the filtering results of the gradient filter. The Gaussian filter can be used to test as well:

    cuda_image_filtering_constant scene2_fullHD.png gaussian_filter_3.2.dat gaussian

cuda_image_filtering_constant's People

Contributors

naoyukiichimura avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.