
HPC-Quiz-FT IV
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Sorna K
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Tema 2: Procesos y hebras
Quiz
•
University
20 questions
C programming syntax quiz
Quiz
•
University
20 questions
Uji Pengetahuan Perangkat Komputer
Quiz
•
7th Grade - University
20 questions
Sistemas Operativos
Quiz
•
1st Grade - University
20 questions
JAVA FOR ANDROID-ANDROID
Quiz
•
University
20 questions
Sistemas Operativos
Quiz
•
University
20 questions
Parallel & Distributed Database
Quiz
•
University
20 questions
Web 3.0 Introductory Meetup
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th 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
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
