HPC-Quiz-FT IV

HPC-Quiz-FT IV

University

25 Qs

quiz-placeholder

Similar activities

MOC 20744C-Securing Windows Server 2016 - Part 1

MOC 20744C-Securing Windows Server 2016 - Part 1

University

20 Qs

CH01 INTRODUCTION TO IT

CH01 INTRODUCTION TO IT

University

20 Qs

CETA'S Quizzard

CETA'S Quizzard

University

20 Qs

Conceitos de Sistemas Operacionais

Conceitos de Sistemas Operacionais

University

20 Qs

ITF+ Ch2, Peripherals and Connectors

ITF+ Ch2, Peripherals and Connectors

University

20 Qs

2.2.1 d Procedures and Functions

2.2.1 d Procedures and Functions

University

20 Qs

Guess the CS Term!

Guess the CS Term!

University

20 Qs

Grafika Komputer IF-IVD

Grafika Komputer IF-IVD

University

20 Qs

HPC-Quiz-FT IV

HPC-Quiz-FT IV

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Sorna K

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?