Giter Site home page Giter Site logo

codedk / cuda-by-example-source-code-for-the-book-s-examples- Goto Github PK

View Code? Open in Web Editor NEW
344.0 4.0 114.0 1.09 MB

CUDA by Example, written by two senior members of the CUDA software platform team, shows programmers how to employ this new technology. The authors introduce each area of CUDA development through working examples.

License: MIT License

Cuda 23.30% C++ 2.84% C 73.87%
cuda gpgpu gpu-computing cpp

cuda-by-example-source-code-for-the-book-s-examples-'s Introduction

Hi there ๐Ÿ‘‹, I'm Panos

I am a senior software engineer from Greece, passionate about programming,
Artificial Intelligence ๐Ÿง , and Startups ๐Ÿš€

  • ๐Ÿ”ฅ CTO with 5+ years of experience and proven leadership skills. Senior Software Engineer for 15+ years.
  • โšก Exploring latest research in machine learning, metaheuristics algorithms and security.
  • ๐Ÿ–๏ธ In my free time, I code for my Phd, solving optimization problems combining metaheuristics and ML.
  • ๐Ÿ”€How to reach me:ย ย  Linkedin Badge
  • ๐Ÿงช Check my research here: ORCID Badge




Languages

Python R C CUDA C OpenGL Delphi julia PHP Flutter QT solidity

Databases

MySQL Oracle redis postgresql AWS

Machine learning frameworks and libraries

pytorch Tensorflow Keras Scikit Numpy NetworkX

Web stack

Git HTML5 JavaScript d3js jQuery NodeJS Flask composer Material UI CSS3 Bootstrap Selenium Rest Api Postman socket io

Backend frameworks

Centos Ubuntu Bash NginX Apache



cuda-by-example-source-code-for-the-book-s-examples-'s People

Contributors

codedk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cuda-by-example-source-code-for-the-book-s-examples-'s Issues

Chapter 3, enum_gpu.cu -- Print issue

Good morning!

I have found a small issue with the printing of the CUDA devices in the enum_gpu.cu file.

The issue is: prop.totalGlobalMem is printed as a long int, with the format specifier %ld. However, by looking at the cudaDeviceProp struct, that field is of type size_t, which in turn is defined as unsigned long long.

Thus, the correct format specifier for printing this value should be %llu. I noticed it when the code reported I had negative memory on my GPU...

Lock.h -- Doubt about __threadfence()

Good morning!

First of all, I have just finished the book, and I must say, it's a great resource! If only all books to explain a technology included examples such as in this one...

Now, I have a doubt about lock.h. In the code of this repo, after atomicCAS and before atomicExch, there is a call to a method named __threadfence(). I googled this method, and apparently it ensures that all writes to global memory before this call actually happen before all writes after the call, among all blocks. But I don't know how this works to "fix" the code. Is it because the mutex is in global memory, and its value must be updated accordingly?

Thanks a lot ๐Ÿ˜Š!

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.