Skip to content

Commit 80df6b3

Browse files
author
Michael Blome
committed
link fixes mostly in parallel
1 parent 923a13c commit 80df6b3

File tree

45 files changed

+660
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+660
-139
lines changed

docs/parallel/amp/cpp-amp-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ std::cout <<a[idx] <<"\n";
183183
```
184184
185185
### extent Class
186-
The [extent Class](../../parallel/amp/reference/extent-class-cpp-amp.md) specifies the length of the data in each dimension of the `array` or `array_view` object. You can create an extent and use it to create an `array` or `array_view` object. You can also retrieve the extent of an existing `array` or `array_view` object. The following example prints the length of the extent in each dimension of an `array_view` object.
186+
The [extent Class](../../parallel/amp/reference/extent-class.md) specifies the length of the data in each dimension of the `array` or `array_view` object. You can create an extent and use it to create an `array` or `array_view` object. You can also retrieve the extent of an existing `array` or `array_view` object. The following example prints the length of the extent in each dimension of an `array_view` object.
187187
188188
```cpp
189189
@@ -262,7 +262,7 @@ for (int i = 0; i <5; i++)
262262
|Shape|Rectangular.|Rectangular.|
263263
|Data storage|Is a data container.|Is a data wrapper.|
264264
|Copy|Explicit and deep copy at definition.|Implicit copy when it is accessed by the kernel function.|
265-
|Data retrieval|By copying the array data back to an object on the CPU thread.|By direct access of the `array_view` object or by calling the [array_view::synchronize Method](reference/array_view-class.md#array_view__synchronize_method) to continue accessing the data on the original container.|
265+
|Data retrieval|By copying the array data back to an object on the CPU thread.|By direct access of the `array_view` object or by calling the [array_view::synchronize Method](reference/array-view-class.md#array_view__synchronize_method) to continue accessing the data on the original container.|
266266

267267

268268
### Shared memory with array and array_view
@@ -394,7 +394,7 @@ void AddArraysWithFunction() {
394394
395395
You can gain additional acceleration by using tiling. Tiling divides the threads into equal rectangular subsets or *tiles*. You determine the appropriate tile size based on your data set and the algorithm that you are coding. For each thread, you have access to the *global* location of a data element relative to the whole `array` or `array_view` and access to the *local* location relative to the tile. Using the local index value simplifies your code because you don't have to write the code to translate index values from global to local. To use tiling, call the [extent::tile Method](reference/extent-class.md#extent__tile_method) on the compute domain in the `parallel_for_each` method, and use a [tiled_index](../../parallel/amp/reference/tiled-index-class.md) object in the lambda expression.
396396
397-
In typical applications, the elements in a tile are related in some way, and the code has to access and keep track of values across the tile. Use the [tile_static Keyword](../../cpp/tile-static-keyword.md) keyword and the [tile_barrier::wait Method](reference/tile_barrier-class.md#tile_barrier__wait_method) to accomplish this. A variable that has the `tile_static` keyword has a scope across an entire tile, and an instance of the variable is created for each tile. You must handle synchronization of tile-thread access to the variable. The [tile_barrier::wait Method](reference/tile_barrier-class.md#tile_barrier__wait_method) stops execution of the current thread until all the threads in the tile have reached the call to `tile_barrier::wait`. So you can accumulate values across the tile by using `tile_static` variables. Then you can finish any computations that require access to all the values.
397+
In typical applications, the elements in a tile are related in some way, and the code has to access and keep track of values across the tile. Use the [tile_static Keyword](../../cpp/tile-static-keyword.md) keyword and the [tile_barrier::wait Method](reference/tile-barrier-class.md#tile_barrier__wait_method) to accomplish this. A variable that has the `tile_static` keyword has a scope across an entire tile, and an instance of the variable is created for each tile. You must handle synchronization of tile-thread access to the variable. The [tile_barrier::wait Method](reference/tile-barrier-class.md#tile_barrier__wait_method) stops execution of the current thread until all the threads in the tile have reached the call to `tile_barrier::wait`. So you can accumulate values across the tile by using `tile_static` variables. Then you can finish any computations that require access to all the values.
398398
399399
The following diagram represents a two-dimensional array of sampling data that is arranged in tiles.
400400

docs/parallel/amp/reference/TOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
### [array Class](array-class.md)
1111
### [array_view Class](array-view-class.md)
1212
### [completion_future Class](completion-future-class.md)
13-
### [extent Class (C++ AMP)](extent-class-cpp-amp.md)
13+
### [extent Class (C++ AMP)](extent-class.md)
1414
### [index Class](index-class.md)
1515
### [invalid_compute_domain Class](invalid-compute-domain-class.md)
1616
### [out_of_memory Class](out-of-memory-class.md)

docs/parallel/amp/reference/accelerator-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static const wchar_t cpu_accelerator[];
153153
```
154154

155155
## <a name="accelerator__create_view_method"></a> accelerator::create_view Method
156-
Creates and returns an `accelerator_view` object on this accelerator, using the specified queuing mode. When the queuing mode is not specified, the new `accelerator_view` uses the [queuing_mode::immediate](../../../parallel/concrt/reference/concurrency-namespace-enums.md#queuing_mode) queuing mode.
156+
Creates and returns an `accelerator_view` object on this accelerator, using the specified queuing mode. When the queuing mode is not specified, the new `accelerator_view` uses the [queuing_mode::immediate](../../../parallel/concrt/reference/concurrency-namespace-enums.md#queuing_mode_enumeration) queuing mode.
157157

158158
```
159159
accelerator_view create_view(queuing_mode qmode = queuing_mode_automatic);

docs/parallel/amp/reference/accelerator-view-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class accelerator_view;
9191

9292
Physical devices can be shared among many client threads. Client threads can cooperatively use the same `accelerator_view` object of an accelerator, or each client can communicate with a compute device via an independent `accelerator_view` object for isolation from other client threads.
9393

94-
An `accelerator_view` object can have one of two [queuing_mode Enumeration](concurrency-namespace-enums-amp.md#queuing-mode-enumeration) states. If the queuing mode is `immediate`, commands like `copy` and `parallel_for_each` are sent to the corresponding accelerator device as soon as they return to the caller. If the queuing mode is `deferred`, such commands are queued up on a command queue that corresponds to the `accelerator_view` object. Commands are not actually sent to the device until `flush()` is called.
94+
An `accelerator_view` object can have one of two [queuing_mode Enumeration](concurrency-namespace-enums-amp.md#queuing_mode_enumeration) states. If the queuing mode is `immediate`, commands like `copy` and `parallel_for_each` are sent to the corresponding accelerator device as soon as they return to the caller. If the queuing mode is `deferred`, such commands are queued up on a command queue that corresponds to the `accelerator_view` object. Commands are not actually sent to the device until `flush()` is called.
9595

9696
## Requirements
9797
**Header:** amprt.h

docs/parallel/amp/reference/accelerator-view-removed-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class accelerator_view_removed : public runtime_exception;
5656

5757
|Name|Description|
5858
|----------|-----------------|
59-
|[accelerator_view_removed::get_view_removed_reason Method](reference/accelerator_view_removed-class.md#accelerator_view_removed__get_view_removed_reason_method)|Returns an HRESULT error code indicating the cause of the `accelerator_view` object's removal.|
59+
|[accelerator_view_removed::get_view_removed_reason Method](reference/accelerator-view-removed-class.md#accelerator_view_removed__get_view_removed_reason_method)|Returns an HRESULT error code indicating the cause of the `accelerator_view` object's removal.|
6060

6161
## Inheritance Hierarchy
6262
`exception`
@@ -71,7 +71,7 @@ class accelerator_view_removed : public runtime_exception;
7171
**Namespace:** Concurrency
7272

7373
## <a name="accelerator_view_removed_ctor"></a> accelerator_view_removed::accelerator_view_removed Constructor
74-
Initializes a new instance of the [accelerator_view_removed](reference/accelerator-view-removed-class.md) class.
74+
Initializes a new instance of the [accelerator_view_removed](accelerator-view-removed-class.md) class.
7575

7676
### Syntax
7777

@@ -105,4 +105,4 @@ HRESULT get_view_removed_reason() const throw();
105105

106106

107107
## See Also
108-
[Concurrency Namespace (C++ AMP)](concurrency-namespace-amp.md)
108+
[Concurrency Namespace (C++ AMP)](concurrency-namespace-cpp-amp.md)

docs/parallel/amp/reference/array-class.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ friend class array;
7272
|[array::get_accelerator_view Method](#array__get_accelerator_view_method)|Returns the [accelerator_view](../../../parallel/amp/reference/accelerator-view-class.md) object that represents the location where the array is allocated. This property can be accessed only on the CPU.|
7373
|[array::get_associated_accelerator_view Method](#array__get_associated_accelerator_view_method)|Gets the second [accelerator_view](../../../parallel/amp/reference/accelerator-view-class.md) object that is passed as a parameter when a staging constructor is called to instantiate the [array](../../../parallel/amp/reference/array-class.md) object.|
7474
|[array::get_cpu_access_type Method](#array__get_cpu_access_type_method)|Returns the [access_type](access_type%20enumeration.md) of the array. This method can be accessed only on the CPU.|
75-
|[array::get_extent Method](#array__get_extent_method)|Returns the [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object of the array.|
75+
|[array::get_extent Method](#array__get_extent_method)|Returns the [extent](../../../parallel/amp/reference/extent-class.md) object of the array.|
7676
|[array::reinterpret_as Method](#array__reinterpret_as_method)|Returns a one-dimensional array that contains all the elements in the `array` object.|
7777
|[array::section Method](#array__section_method)|Returns a subsection of the [array](../../../parallel/amp/reference/array-class.md) object that is at the specified origin and, optionally, that has the specified extent.|
7878
|[array::view_as Method](#array__view_as_method)|Returns an [array_view](../../../parallel/amp/reference/array-view-class.md) object that is constructed from the `array` object.|
@@ -547,7 +547,7 @@ const value_type* data() const restrict(amp,
547547
A pointer to the raw data of the array.
548548

549549
## <a name="array__extent_data_member"></a> array::extent Data Member
550-
Gets the [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object that defines the shape of the [array](../../../parallel/amp/reference/array-class.md).
550+
Gets the [extent](../../../parallel/amp/reference/extent-class.md) object that defines the shape of the [array](../../../parallel/amp/reference/array-class.md).
551551

552552
```
553553
__declspec(property(get= get_extent)) Concurrency::extent<_Rank> extent;
@@ -585,7 +585,7 @@ access_type get_cpu_access_type() const restrict(cpu);
585585
### Return Value
586586

587587
## <a name="array__get_extent_method"></a> array::get_extent Method
588-
Returns the [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object of the [array](../../../parallel/amp/reference/array-class.md).
588+
Returns the [extent](../../../parallel/amp/reference/extent-class.md) object of the [array](../../../parallel/amp/reference/array-class.md).
589589

590590
```
591591
Concurrency::extent<_Rank> get_extent() const restrict(amp,cpu);
@@ -658,11 +658,11 @@ typename details::_Projection_result_type<value_type,_Rank>::_Const_result_type
658658
Returns the element that is at the specified index.
659659

660660
```
661-
value_type& operator[] (
661+
value_type& operator[] (
662662
const index<_Rank>& _Index) restrict(amp,cpu);
663663
664664
665-
const value_type& operator[] (
665+
const value_type& operator[] (
666666
const index<_Rank>& _Index) const restrict(amp,cpu);
667667
668668
@@ -798,7 +798,7 @@ array_view<const value_type,3> section(
798798
The least significant component of the extent of this section.
799799

800800
`_Ext`
801-
The [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object that specifies the extent of the section. The origin is 0.
801+
The [extent](../../../parallel/amp/reference/extent-class.md) object that specifies the extent of the section. The origin is 0.
802802

803803
`_Idx`
804804
The [index](../../../parallel/amp/reference/index-class.md) object that specifies the location of the origin. The subsection is the rest of the extent.
@@ -816,7 +816,7 @@ array_view<const value_type,3> section(
816816
The rank of the section.
817817

818818
`_Section_extent`
819-
The [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object that specifies the extent of the section.
819+
The [extent](../../../parallel/amp/reference/extent-class.md) object that specifies the extent of the section.
820820

821821
`_Section_origin`
822822
The [index](../../../parallel/amp/reference/index-class.md) object that specifies the location of the origin.

docs/parallel/amp/reference/array-view-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ __declspec(property(get= get_extent)) Concurrency::extent<_Rank> extent;
424424
```
425425

426426
## <a name="array_view__get_extent_method"></a> array_view::get_extent Method
427-
Returns the [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object of the [array_view](../../../parallel/amp/reference/array-view-class.md) object.
427+
Returns the [extent](../../../parallel/amp/reference/extent-class.md) object of the [array_view](../../../parallel/amp/reference/array-view-class.md) object.
428428

429429
```
430430
Concurrency::extent<_Rank> get_extent() const restrict(cpu, amp);
@@ -609,7 +609,7 @@ array_view section(
609609
The least significant component of the extent of this section.
610610

611611
`_Ext`
612-
The [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object that specifies the extent of the section. The origin is 0.
612+
The [extent](../../../parallel/amp/reference/extent-class.md) object that specifies the extent of the section. The origin is 0.
613613

614614
`_Idx`
615615
The [index](../../../parallel/amp/reference/index-class.md) object that specifies the location of the origin. The subsection is the rest of the extent.
@@ -627,7 +627,7 @@ array_view section(
627627
The rank of the section.
628628

629629
`_Section_extent`
630-
The [extent](../../../parallel/amp/reference/extent-class-cpp-amp.md) object that specifies the extent of the section.
630+
The [extent](../../../parallel/amp/reference/extent-class.md) object that specifies the extent of the section.
631631

632632
`_Section_origin`
633633
The [index](../../../parallel/amp/reference/index-class.md) object that specifies the location of the origin.

docs/parallel/amp/reference/concurrency-graphics-namespace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ namespace graphics;
6060

6161
|Name|Description|
6262
|----------|-----------------|
63-
|[address_mode Enumeration](reference/concurrency-graphics-namespace-enums-amp.md#address_mode)|Specifies address modes supported for texture sampling.|
64-
|[filter_mode Enumeration](reference/concurrency-graphics-namespace-enums-amp.md#filter_mode)|Specifies filter modes supported for texture sampling.|
63+
|[address_mode Enumeration](reference/concurrency-graphics-namespace-enums-amp.md#address_mode_enumeration).|Specifies address modes supported for texture sampling.|
64+
|[filter_mode Enumeration](reference/concurrency-graphics-namespace-enums-amp.md#filter_mode_enumeration)|Specifies filter modes supported for texture sampling.|
6565

6666
### Classes
6767

docs/parallel/amp/reference/concurrency-namespace-cpp-amp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ translation.priority.ht:
3535
- "zh-tw"
3636
---
3737
# Concurrency Namespace (C++ AMP)
38-
Provides classes and functions that accelerate the execution of C++ code on data-parallel hardware. For more information, see [C++ AMP Overview](cpp-amp-overview.md)
38+
Provides classes and functions that accelerate the execution of C++ code on data-parallel hardware. For more information, see [C++ AMP Overview](../cpp-amp-overview.md)
3939

4040
## Syntax
4141

@@ -64,7 +64,7 @@ namespace Concurrency;
6464
|[array Class](array-class.md)|A data aggregate on an `accelerator_view` in the grid domain. It is a collection of variables, one for each element in a grid domain. Each variable holds a value that corresponds to some C++ type.|
6565
|[array_view Class](array-view-class.md)|Represents a view into the data in an array\<T,N>.|
6666
|[completion_future Class](completion-future-class.md)|Represents a future that corresponds to a C++ AMP asynchronous operation.|
67-
|[extent Class](extent-class-cpp-amp.md)|Represents a vector of N integer values that specify the bounds of an N-dimensional space that has an origin of 0. The values in the coordinate vector are ordered from most significant to least significant. For example, in Cartesian 3-dimensional space, the extent vector (7,5,3) represents a space in which the z coordinate ranges from 0 to 7, the y coordinate ranges from 0 to 5, and the x coordinate ranges from 0 to 3.|
67+
|[extent Class](extent-class.md)|Represents a vector of N integer values that specify the bounds of an N-dimensional space that has an origin of 0. The values in the coordinate vector are ordered from most significant to least significant. For example, in Cartesian 3-dimensional space, the extent vector (7,5,3) represents a space in which the z coordinate ranges from 0 to 7, the y coordinate ranges from 0 to 5, and the x coordinate ranges from 0 to 3.|
6868
|[index Class](index-class.md)|Defines an N-dimensional index point.|
6969
|[invalid_compute_domain Class](invalid-compute-domain-class.md)|The exception that's thrown when the runtime can't start a kernel by using the compute domain specified at the `parallel_for_each` call site.|
7070
|[out_of_memory Class](out-of-memory-class.md)|The exception that is thrown when a method fails because of a lack of system or device memory.|
@@ -80,7 +80,7 @@ namespace Concurrency;
8080
|Name|Description|
8181
|----------|-----------------|
8282
|[access_type Enumeration](concurrency-namespace-enums-amp.md#access_type)|Specifies the data access type.|
83-
|[queuing_mode Enumeration](concurrency-namespace-enums-amp.mdqueuing_mode)|Specifies the queuing modes that are supported on the accelerator.|
83+
|[queuing_mode Enumeration](oncurrency-namespace-enums-amp.md#queuing_mode_enumeration)|Specifies the queuing modes that are supported on the accelerator.|
8484

8585
### Operators
8686

docs/parallel/amp/reference/concurrency-precise-math-namespace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ translation.priority.mt:
3434
- "tr-tr"
3535
---
3636
# Concurrency::precise_math Namespace
37-
Functions in the `precise_math` namespace are C99 compliant. Both single precision and double precision versions of each function are included. For example, `acos` is the double-precision version and `acosf` is the single-precision version. These functions, including the single-precision functions, require extended double-precision support on the accelerator. You can use the [accelerator::supports_double_precision Data Member](reference/accelerator-class.md#accelerator__supports_double_precision_data_member) to determine if you can run these functions on a specific accelerator.
37+
Functions in the `precise_math` namespace are C99 compliant. Both single precision and double precision versions of each function are included. For example, `acos` is the double-precision version and `acosf` is the single-precision version. These functions, including the single-precision functions, require extended double-precision support on the accelerator. You can use the [accelerator::supports_double_precision Data Member](accelerator-class.md#accelerator__supports_double_precision_data_member) to determine if you can run these functions on a specific accelerator.
3838

3939
## Syntax
4040

0 commit comments

Comments
 (0)