Coder Social home page Coder Social logo

accelerator_interoperability's Introduction

Accelerator Interoperability

FFT: The FFT C and Fortran samples show how to combine OpenACC data regions with GPU libraries such as CUFFT. Since files containing CUFFT function calls must be compiled with the nvcc compiler and OpenACC containing files must be compiled with cc/CC/ftn it is necessary to create wrapper functions as shown below. The acc host_data use_device directive will be used which causes the device allocated memory address of specified variables to be used in host code within the directives scope.

Hash: The hash C and Fortran samples show how to leverage OpenACC, cuRand, and Thrust in a single application. This example will use cuRand to generate random data, OpenACC to hash the data, and finally Thrust to sort the data into canonical order. Although this example is provided to illustrate OpenACC interoperability only it was written with a simple nearest neighbor hash implementation given interleaved 3D positions(x1,y1,z1,x2,y2,z2โ€ฆ) in mind.

accelerator_interoperability's People

Contributors

adamsimpson avatar

Stargazers

Mark Cooke avatar  avatar  avatar Jeff Hammond avatar

Watchers

Fernanda Foertter avatar James Cloos avatar  avatar Michael J. Brim avatar Jeffrey Miller avatar Robert D. French avatar Wayne Joubert avatar Dan Dietz avatar Suzanne Parete-Koon avatar James Wynne III avatar  avatar Jamie Finney avatar  avatar Ryan avatar Fernando Posada avatar Pi-Yueh Chuang avatar Tom Papatheodore avatar Jesse Hanley avatar Carl avatar Joseph Voss avatar  avatar Dmitry I. Lyakh avatar Reuben D. Budiardja avatar Aaron Barlow avatar Matthew Davis avatar Jeff Niles avatar  avatar Preston Shires avatar Subil avatar  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.