Skip to content

Commit 155f925

Browse files
author
Colin Robertson
committed
Spelling and markdown issues
1 parent dc3d82e commit 155f925

11 files changed

+30
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ The path to the accelerator.
472472
473473
## <a name="set_default_cpu_access_type"></a> set_default_cpu_access_type
474474
475-
Set the default cpu access_type for arrays created on this accelerator or for implicit memory allocations as part of array_views accessed on this accelerator. This method only succeeds if the default_cpu_access_type for the accelerator has not already been overriden by a previous call to this method and the runtime selected default_cpu_access_type for this accelerator has not yet been used for allocating an array or for an implicit memory allocation backing an array_view accessed on this accelerator.
475+
Set the default cpu access_type for arrays created on this accelerator or for implicit memory allocations as part of array_views accessed on this accelerator. This method only succeeds if the default_cpu_access_type for the accelerator has not already been overridden by a previous call to this method and the runtime selected default_cpu_access_type for this accelerator has not yet been used for allocating an array or for an implicit memory allocation backing an array_view accessed on this accelerator.
476476
477477
```cpp
478478
bool set_default_cpu_access_type(access_type _Default_cpu_access_type);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ The next-to-most-significant component of the extent of this section.
398398
The least significant component of the extent of this section.
399399

400400
*_InputIterator*<br/>
401-
The type of the input interator.
401+
The type of the input iterator.
402402

403403
*_Src*<br/>
404404
To object to copy.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ An `array_view` object or a const `array_view` object that is based on this `arr
552552

553553
Sometimes it is convenient to view a multi-dimensional array as a linear, one-dimensional array, which may have a different value type than the source array. You can achieve this on an `array_view` by using this method.
554554

555-
**Warning** Reinterpeting an array_view object by using a different value type is a potentially unsafe operation. This functionality should be used with care.
555+
**Warning** Reinterpreting an array_view object by using a different value type is a potentially unsafe operation. This functionality should be used with care.
556556

557557
Here's an example:
558558

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The type of the destination object.
126126
The offset into the destination at which to begin copying.
127127
128128
*InputIterator*<br/>
129-
The type of the input interator.
129+
The type of the input iterator.
130130
131131
*OutputIterator*<br/>
132132
The type of the output iterator.
@@ -261,7 +261,7 @@ The type of the destination object.
261261
The offset into the destination at which to begin copying.
262262

263263
*InputIterator*<br/>
264-
The type of the input interator.
264+
The type of the input iterator.
265265

266266
*OutputIterator*<br/>
267267
The type of the output iterator.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A `tile_barrier` object.
3131
3232
## <a name="amp_uninitialize"></a> amp_uninitialize
3333
34-
Uninitializes the C++ AMP runtime. It is legal to call this function multiple times during an applications lifetime. Calling any C++ AMP API afer calling this function will reinitialize the C++ AMP runtime. Note that it is illegal to use C++ AMP objects across calls to this function and doing so will result in undefined behavior. Also, concurrently calling this function and any other AMP APIs is illegal and would result in undefined behavior.
34+
Uninitializes the C++ AMP runtime. It is legal to call this function multiple times during an applications lifetime. Calling any C++ AMP API after calling this function will reinitialize the C++ AMP runtime. Note that it is illegal to use C++ AMP objects across calls to this function and doing so will result in undefined behavior. Also, concurrently calling this function and any other AMP APIs is illegal and would result in undefined behavior.
3535
3636
```cpp
3737
void __cdecl amp_uninitialize();
@@ -94,7 +94,7 @@ inline float atomic_exchange(
9494
### Parameters
9595

9696
*_Dest*<br/>
97-
Pointer to the destionation location.
97+
Pointer to the destination location.
9898

9999
*value*<br/>
100100
The new value.
@@ -301,7 +301,7 @@ inline unsigned int atomic_fetch_sub(
301301
### Parameters
302302

303303
*_Dest*<br/>
304-
Pointer to the destionation location.
304+
Pointer to the destination location.
305305

306306
*value*<br/>
307307
The value to be subtracted.
@@ -312,7 +312,7 @@ The original value of the memory location.
312312

313313
## <a name="atomic_fetch_xor"></a> atomic_fetch_xor Function (C++ AMP)
314314

315-
Atomically peforms an bitwise XOR operation of a value and a memory location.
315+
Atomically performs an bitwise XOR operation of a value and a memory location.
316316

317317
```cpp
318318
inline int atomic_fetch_xor(
@@ -415,7 +415,7 @@ The object to copy to.
415415
An output iterator to the beginning position at destination.
416416

417417
*InputIterator*<br/>
418-
The type of the input interator.
418+
The type of the input iterator.
419419

420420
*OutputIterator*<br/>
421421
The type of the output iterator.
@@ -504,7 +504,7 @@ The object to copy to.
504504
An output iterator to the beginning position at destination.
505505
506506
*InputIterator*<br/>
507-
The type of the input interator.
507+
The type of the input iterator.
508508
509509
*OutputIterator*<br/>
510510
The type of the output iterator.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ An `extent` object on which the new `extent` object is based.
125125

126126
## Remarks
127127

128-
The parameterless constructor initializes an `extent` object that has a rank of three.
128+
The default constructor initializes an `extent` object that has a rank of three.
129129

130130
If an array is used to construct an `extent` object, the length of the array must match the rank of the `extent` object.
131131

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.assetid: cbe79b08-0ba7-474c-9828-f1a71da39eb3
77
---
88
# index Class
99

10-
Defines an *N*-dimensional index pographics-cpp-amp.md.
10+
Defines an *N*-dimensional index vector.
1111

1212
## Syntax
1313

@@ -117,6 +117,7 @@ An index object on which the new index object is based.
117117
## <a name="operator--"></a> operator--
118118
119119
Decrements each element of the index object.
120+
120121
```cpp
121122
index<_Rank>& operator--() restrict(amp,cpu);
122123
@@ -145,11 +146,13 @@ index<_Rank>& operator%=(
145146
The number to divide by to find the modulus.
146147

147148
## Return Value
149+
148150
The index object.
149151

150152
## <a name="operator_star_eq"></a> operator*=
151153

152154
Multiplies each element in the index object by the specified number.
155+
153156
```cpp
154157
index<_Rank>& operator*=(
155158
int _Rhs
@@ -202,6 +205,7 @@ The element that's at the specified index.
202205
### Remarks
203206
204207
This following example displays the component values of the index.
208+
205209
```cpp
206210
// Prints 1 2 3.
207211
concurrency::index<3> idx(1, 2, 3);
@@ -213,6 +217,7 @@ std::cout << idx[2] << "\n";
213217
## <a name="operator_add_add"></a> operator++
214218

215219
Increments each element of the index object.
220+
216221
```cpp
217222
index<_Rank>& operator++() restrict(amp,cpu);
218223

@@ -228,6 +233,7 @@ For the prefix operator, the index object (*this). For the suffix operator, a ne
228233
## <a name="operator_add_eq"></a> operator+=
229234

230235
Adds the specified number to each element of the index object.
236+
231237
```cpp
232238
index<_Rank>& operator+=(
233239
const index<_Rank>& _Rhs
@@ -250,6 +256,7 @@ The index object.
250256
## <a name="operator_eq"></a> operator=
251257

252258
Copies the contents of the specified index object into this one.
259+
253260
```cpp
254261
index<_Rank>& operator=(
255262
const index<_Rank>& _Other
@@ -268,6 +275,7 @@ A reference to this index object.
268275
## <a name="operator_-_eq"></a> operator-=
269276

270277
Subtracts the specified number from each element of the index object.
278+
271279
```cpp
272280
index<_Rank>& operator-=(
273281
const index<_Rank>& _Rhs
@@ -288,7 +296,9 @@ The number to subtract.
288296
The index object.
289297

290298
## <a name="rank"></a> Rank
291-
Gets the rank of the index object.
299+
300+
Gets the rank of the index object.
301+
292302
```cpp
293303
static const int rank = _Rank;
294304
```

docs/parallel/amp/reference/int-3-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class int_3;
144144

145145
Default constructor, initializes all elements with 0.
146146

147-
## Syntax
147+
### Syntax
148148

149149
```cpp
150150
int_3() restrict(amp,cpu);
@@ -195,7 +195,7 @@ The object used to initialize.
195195
196196
## <a name="size"></a> size
197197
198-
## Syntax
198+
### Syntax
199199
200200
```cpp
201201
static const int size = 3;

docs/parallel/amp/reference/short-vector-traits-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.assetid: cd9492da-9e02-4a6e-9d50-b61252cdb460
66
---
77
# short_vector_traits Structure
88

9-
short_vector_traits allows retrival of the underlying vector length and scalar type of a short vector type or a scalar type
9+
short_vector_traits allows retrieval of the underlying vector length and scalar type of a short vector type or a scalar type
1010

1111
## Syntax
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ The next-to-most-significant component of the texture.
545545
The least significant component of the extent of the texture.
546546
547547
*_Input_iterator*<br/>
548-
The type of the input interator.
548+
The type of the input iterator.
549549
550550
*_Mipmap_levels*<br/>
551551
The number of mipmap levels in the underlying texture. If 0 is specified, the texture will have the full range of mipmap levels down to the smallest possible size for the specified extent.

docs/parallel/amp/using-tiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can use tiling to maximize the acceleration of your app. Tiling divides thre
99

1010
- `tile_static` variables. The primary benefit of tiling is the performance gain from `tile_static` access. Access to data in `tile_static` memory can be significantly faster than access to data in the global space (`array` or `array_view` objects). An instance of a `tile_static` variable is created for each tile, and all threads in the tile have access to the variable. In a typical tiled algorithm, data is copied into `tile_static` memory once from global memory and then accessed many times from the `tile_static` memory.
1111

12-
- [tile_barrier::wait Method](reference/tile-barrier-class.md#wait). A call to `tile_barrier::wait` suspends execution of the current thread until all of the threads in the same tile reach the call to `tile_barrier::wait`. You cannot guarantee the order that the threads will run in, only that no threads in the tile will execute past the call to `tile_barrier::wait` until all of the threads have reached the call. This means that by using the `tile_barrier::wait` method, you can perform tasks on a tile-by-tile basis rather than a thread-by-thread basis. A typical tiling algorithm has code to initialize the `tile_static` memory for the whole tile followed by a call to `tile_barrer::wait`. Code that follows `tile_barrier::wait` contains computations that require access to all the `tile_static` values.
12+
- [tile_barrier::wait Method](reference/tile-barrier-class.md#wait). A call to `tile_barrier::wait` suspends execution of the current thread until all of the threads in the same tile reach the call to `tile_barrier::wait`. You cannot guarantee the order that the threads will run in, only that no threads in the tile will execute past the call to `tile_barrier::wait` until all of the threads have reached the call. This means that by using the `tile_barrier::wait` method, you can perform tasks on a tile-by-tile basis rather than a thread-by-thread basis. A typical tiling algorithm has code to initialize the `tile_static` memory for the whole tile followed by a call to `tile_barrier::wait`. Code that follows `tile_barrier::wait` contains computations that require access to all the `tile_static` values.
1313

1414
- Local and global indexing. You have access to the index of the thread relative to the entire `array_view` or `array` object and the index relative to the tile. Using the local index can make your code easier to read and debug. Typically, you use local indexing to access `tile_static` variables, and global indexing to access `array` and `array_view` variables.
1515

@@ -228,7 +228,7 @@ void SamplingExample() {
228228
}
229229
std::cout << "\n";
230230
}
231-
// Output for SAMPLESSIZE = 2 is:
231+
// Output for SAMPLESIZE = 2 is:
232232
// 4.5 6.5 8.5 10.5
233233
// 20.5 22.5 24.5 26.5
234234
// 36.5 38.5 40.5 42.5

0 commit comments

Comments
 (0)