Coder Social home page Coder Social logo

fernandoschett / dpcpp_for_dummies Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 559 KB

This repository contains code samples in DPC++, an extension of the C++ standard created by Intel for heterogeneous parallel programming.

Home Page: https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/overview.html

License: Apache License 2.0

C++ 100.00%
cpp dpcpp gpu gpu-programming parallel-programming code-sample

dpcpp_for_dummies's Introduction

This READ.md template was written based on this repository.

🖥️ DPCPP for dummies 🖥️

Developed by 💻:

Special thanks to 🥰:

  • Murillo Boratto, our mentor, your experience and knowledge have been invaluable to our progress.

About 🤔:

This repository contains code samples in DPC++, an extension of the C++ standard created by Intel® for heterogeneous parallel programming. The code samples were created with the aim of helping developers understand and use the DPC++ language in their projects.

What is DPC++?

DPC++ is an extension of the C++ standard that enables heterogeneous parallel programming on systems with multiple types of processors, such as CPUs and GPUs. It was created by Intel® in collaboration with other companies and is based on open-source technologies like LLVM and SYCL.

Resourses 🧑‍🔬:

  • Collection of basic parallel DPC++ code examples.
  • Instructions and information targeted at beginners in parallel programming.
  • Concepts explanations like array reduction, matrix multiplication, and vector addition using DPC++.

Results 📈:

Dependencies 🚚:

To use the code samples, you need to have a compiler that supports DPC++, such as the Intel® DPC++ Compiler or hipSYCL. You also need a system with support for heterogeneous processors, such as an Intel® CPU and an AMD Radeon GPU. The project dependencies are described in a dependencies file within the repository. Dont forget to download DPCPP and Sycl libraries within the Intel® oneAPI DPC++/C++ Compiler to run the codes inside this repository.

How to run it 🏃:

To compile and run the examples in this repository, inside the codes directory, execute the following commands, where output-name refers to the name the executable file will have after compilation, and source-code refers to the name of the code file you want to compile:

  1. Load the oneAPI environment with the following command:

     source /opt/Intel®/oneapi/setvars.sh
    
  2. To compile, use the following command:

     dpcpp -o output-name source-code
    
  3. Running the code:

     ./output-name
    
  4. [ Example ] To compile the arrayReduction, we need to run the following commands:

     source /opt/Intel®/oneapi/setvars.sh
     dpcpp -o arrayReduction ./arrayReduction.cpp
     ./arrayReduction
    

Development Process ⚙️:

Developers worked for two weeks using the Kanban methodology to develop this project. Each week, they synchronized and delivered their tasks.

Tools Used 🛠️:

How to contribute 🫂:

Feel free to create a new branch, fork the project, create a new Issue or make a pull request contact one of us to develop at DPCPP for dummies.

Licence 📜:

Apache V2

References 📙:

[1] INTEL. Guia do Desenvolvedor e Referência do Compilador Intel® oneAPI DPC++/C++. [S.l.], 2023. Available at: https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-0/overview.html. Accessed on: June 16, 2023.

dpcpp_for_dummies's People

Contributors

antoniohoracio77 avatar fernandoschett avatar orlandomotapires avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dpcpp_for_dummies's Issues

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.