Which of the following statements about data management in OpenCL is FALSE? Select one: a. Data can be transferred from host to device using a write buffer command b. Host memory and device memory are conceptually separate c. Asynchronous data transfer can be performed using a blocking data transfer command d. Mapping a memory object allows the host to access the data e. A non-blocking command returns control to the host immediately after the command is called Clear my choice Which of the following statements cannot be used to initialise a vector data type? Select one: a. int4 vec = (int4) (1, 2, 3, 4); float4 vec = (float4) (2.0); b. c. int4 vec = (int4) ((int2) (5, 10), (int2) (11, 3)); d. char4 vec (char4) ('a', 'c', 'f', 'q'); e. float4 vec = array.s01; Clear my choice

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Provide simple explanation

Which of the following statements about data management in OpenCL is FALSE?
Select one:
a. Data can be transferred from host to device using a write buffer command
b. Host memory and device memory are conceptually separate
c. Asynchronous data transfer can be performed using a blocking data transfer command
d. Mapping a memory object allows the host to access the data
e. A non-blocking command returns control to the host immediately after the command is called
Clear my choice
Which of the following statements cannot be used to initialise a vector data type?
Select one:
a. int4 vec = (int4) (1, 2, 3, 4);
b. float4 vec (float4) (2.0);
c. int4 vec = (int4) ((int2) (5, 10), (int2) (11, 3));
d. char4 vec = (char4) ('a', 'c', 'f', 'q');
e. float4 vec = array.s01;
Clear my choice
Transcribed Image Text:Which of the following statements about data management in OpenCL is FALSE? Select one: a. Data can be transferred from host to device using a write buffer command b. Host memory and device memory are conceptually separate c. Asynchronous data transfer can be performed using a blocking data transfer command d. Mapping a memory object allows the host to access the data e. A non-blocking command returns control to the host immediately after the command is called Clear my choice Which of the following statements cannot be used to initialise a vector data type? Select one: a. int4 vec = (int4) (1, 2, 3, 4); b. float4 vec (float4) (2.0); c. int4 vec = (int4) ((int2) (5, 10), (int2) (11, 3)); d. char4 vec = (char4) ('a', 'c', 'f', 'q'); e. float4 vec = array.s01; Clear my choice
Which of the following statements related to parallel computing is TRUE?
Select one:
a. Amdahl's law is concerned with theoretical speedup in parallel computing
b. Gustafson-Barsis' law is for serial computing only
C. Data parallelism and task parallelism cannot be combined to solve a single problem
d. In task parallelism, tasks are executed sequentially
e. Synchronisation is not important in task parallelism
Clear my choice
Which of the following statements about OpenCL programs is FALSE?
Select one:
a. An OpenCL program is divided into host and device code
b. OpenCL programs can dynamically discover devices in a system
c. An OpenCL program can have more than one host.
d. OpenCL programs speed up applications by offloads computationally intensive code onto devices
e. OpenCL programs are coordinated by a host
Clear my choice
Given the following snippet of code:
cl::NDRange offset(4);
cl::NDRange globalSize(128);
cl::NDRange localSize(8);
queue.enqueueNDRangeKernel (kernel, offset, globalSize, localSize);
Which of the following statements is TRUE?
Select one:
a. get local_size(0) will return values from 0 to 127
b. get local_id (0) will return values from 0 to 3
c. get_local_id (0) will return values from 0 to 7
d. get local_id (0) will return values from 0 to 127
e. get local_size(0) will return values from 0 to 7
Clear my choice
Transcribed Image Text:Which of the following statements related to parallel computing is TRUE? Select one: a. Amdahl's law is concerned with theoretical speedup in parallel computing b. Gustafson-Barsis' law is for serial computing only C. Data parallelism and task parallelism cannot be combined to solve a single problem d. In task parallelism, tasks are executed sequentially e. Synchronisation is not important in task parallelism Clear my choice Which of the following statements about OpenCL programs is FALSE? Select one: a. An OpenCL program is divided into host and device code b. OpenCL programs can dynamically discover devices in a system c. An OpenCL program can have more than one host. d. OpenCL programs speed up applications by offloads computationally intensive code onto devices e. OpenCL programs are coordinated by a host Clear my choice Given the following snippet of code: cl::NDRange offset(4); cl::NDRange globalSize(128); cl::NDRange localSize(8); queue.enqueueNDRangeKernel (kernel, offset, globalSize, localSize); Which of the following statements is TRUE? Select one: a. get local_size(0) will return values from 0 to 127 b. get local_id (0) will return values from 0 to 3 c. get_local_id (0) will return values from 0 to 7 d. get local_id (0) will return values from 0 to 127 e. get local_size(0) will return values from 0 to 7 Clear my choice
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education