Hands-On GPU Computing with Python by Avimanyu Bandyopadhyay
Author:Avimanyu Bandyopadhyay
Language: eng
Format: epub, mobi, pdf
Tags: COM087020 - COMPUTERS / Desktop Applications / Design and Graphics, COM051240 - COMPUTERS / Software Development and Engineering / Systems Analysis and Design, COM051220 - COMPUTERS / Programming / Parallel
Publisher: Packt Publishing
Published: 2019-05-14T03:19:35+00:00
// Setup input values
for (i = 0; i < N - 1; ++i) {
p[i] = 24.0;
q[i] = 12.0;
}
// Copy inputs to device
hipMemcpy(gpu_p, p, size, hipMemcpyHostToDevice);
hipMemcpy(gpu_q, q, size, hipMemcpyHostToDevice);
Note that only the following comment has been modified manually for HIP:
//INITIALIZE HIP EVENTS
hipEvent_t start, stop;
float elapsedTime;
//CREATING EVENTS
hipEventCreate(&start);
hipEventCreate(&stop);
hipEventRecord(start, 0);
//HIP KERNEL STUFF HERE...
// Launch multiply() kernel on GPU with N threads
hipLaunchKernelGGL(multiply, dim3((N + THREADS_PER_BLOCK - 1) / THREADS_PER_BLOCK), dim3(THREADS_PER_BLOCK), 0, 0, gpu_p, gpu_q, N);
Download
Hands-On GPU Computing with Python by Avimanyu Bandyopadhyay.mobi
Hands-On GPU Computing with Python by Avimanyu Bandyopadhyay.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
AI & Machine Learning | Bioinformatics |
Computer Simulation | Cybernetics |
Human-Computer Interaction | Information Theory |
Robotics | Systems Analysis & Design |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8295)
Test-Driven Development with Java by Alan Mellor(6695)
Data Augmentation with Python by Duc Haba(6599)
Principles of Data Fabric by Sonia Mezzetta(6358)
Learn Blender Simulations the Right Way by Stephen Pearson(6249)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6116)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5516)
Big Data Analysis with Python by Ivan Marin(5346)
The Infinite Retina by Robert Scoble Irena Cronin(5212)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5143)
Pretrain Vision and Large Language Models in Python by Emily Webber(4305)
Infrastructure as Code for Beginners by Russ McKendrick(4068)
Functional Programming in JavaScript by Mantyla Dan(4037)
The Age of Surveillance Capitalism by Shoshana Zuboff(3946)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3782)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3584)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3560)
