
HPC-Quiz-FT IV

Quiz
•
Computers
•
University
•
Medium
Sorna K
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the correct way to free allocated GPU memory?
free(ptr);
cudaFree(ptr);
gpuFree(ptr);
cudaDealloc(ptr);
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which function is used to copy data from the CPU to the GPU?
cudaMemcpy(dest, src, size, cudaHostToDevice);
cudaCopy(dest, src, size, cudaMemcpyHostToDevice);
cudaMemcpy(dest, src, size, cudaMemcpyHostToDevice);
memcpy(dest, src, size);
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you allocate memory on the GPU?
malloc(size);
cudaMalloc(&ptr, size);
gpuAlloc(&ptr, size);
cudaAlloc(&ptr, size);
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does the threadIdx.x variable represent?
The index of the current thread within a block
The index of the current block within the grid
The total number of threads in a block
The total number of blocks in the grid
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which keyword is used to define a function that runs on the GPU but is called from the CPU?
__device__
__global__
__host__
__gpu__
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you declare a CUDA kernel function?
void kernel<<<...>>>();
__global__ void kernel() {}
__kernel void kernel() {}
gpu_function void kernel() {}
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you launch a CUDA kernel with 256 threads per block?
kernel();
kernel<<<1, 256>>>();
kernel<<<256, 1>>>();
kernel<<<256>>>();
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Week 5

Quiz
•
University
20 questions
Revisão 1ª AV - Sistemas Operacionais

Quiz
•
University
20 questions
Revisão - Sistemas Operacionais

Quiz
•
University
20 questions
Operating systems

Quiz
•
10th Grade - University
20 questions
Pointers

Quiz
•
University
20 questions
JSS 2 SECOND TEST

Quiz
•
8th Grade - University
26 questions
Intro C++

Quiz
•
University
20 questions
CompTIA IT Fundamentals Practice

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University