Differences between target and target data

Discuss the OpenMP 4.0 Examples document.
Locked
guraynet
Posts: 2
Joined: Thu Nov 07, 2013 6:42 am

Differences between target and target data

Post by guraynet »

I couldn't understand that what is the difference between target and target data? According to specifications target data create a new data environment. So what is the data environment?

chabachull
Posts: 5
Joined: Mon Jun 17, 2013 3:02 am

Re: Differences between target and target data

Post by chabachull »

The data environment is the scope in which the variables you specified in the directive is alive and valid on the device.

Basically the difference between a target directive and a target data directive directive is that the code inside the target directive scope is executed on the device, while a target data directive just say that you want some data on the device, and they will remain available only inside the scope of the directive.

andrewdiaz
Posts: 1
Joined: Fri Sep 18, 2015 2:33 am

Re: Differences between target and target data

Post by andrewdiaz »

In simple words, data environment is that where you can use the value. For example, if you make it public, then it can be used anywhere. If you make it private, then you can use it only that specified area.

target and target data are different in terms of values. Suppose you access target value. This value denotes the address of the location. But, the target data denotes the actual value located in that address.

I hope you are clear now.

rosshickers
Posts: 1
Joined: Tue Feb 06, 2018 10:08 am

Re: Differences between target and target data

Post by rosshickers »

The difference between input and output is not strict. It subsist just in time while separating attributes that are known in the decision point from other attributes (also the target) which belong to the prediction.
Proper resources and guidance in how to do your assignments effectively, homework help online can help you.

Locked