Tutorial by Examples: c

Multi-block approach to parallel reduction is very similar to the single-block approach. The global input array must be split into sections, each reduced by a single block. When a partial result from each block is obtained, one final block reduces these to obtain the final result. sumNoncommSin...
Sometimes the reduction has to be performed on a very small scale, as a part of a bigger CUDA kernel. Suppose for example, that the input data has exactly 32 elements - the number of threads in a warp. In such scenario a single warp can be assigned to perform the reduction. Given that warp execut...
Sometimes the reduction has to be performed on a very small scale, as a part of a bigger CUDA kernel. Suppose for example, that the input data has exactly 32 elements - the number of threads in a warp. In such scenario a single warp can be assigned to perform the reduction. Given that warp execut...
Typically, reduction is performed on global or shared array. However, when the reduction is performed on a very small scale, as a part of a bigger CUDA kernel, it can be performed with a single warp. When that happens, on Keppler or higher architectures (CC>=3.0), it is possible to use warp-shu...
That the easiest case actually, very natural in the React world and the chances are - you are already using it. You can pass props down to child components. In this example message is the prop that we pass down to the child component, the name message is chosen arbitrarily, you can name it anything...
Go to Catalog > Filters and select Insert to create a filter group. Assign a filter group name (e.g. Color) and add filter name values (e.g. Blue, Red, Yellow).
Go to Catalog > Categories and Edit a category. Under the Data tab add the filters you want to be able to apply to that category (e.g. Color > Blue, Color > Red).
Go to Catalog > Products and Edit a product. Under the Links tab add the filters which apply to the product (e.g. Color > Blue). Apply to as many products as applicable.
interface IMyDirectiveController { // specify exposed controller methods and properties here getUrl(): string; } class MyDirectiveController implements IMyDirectiveController { // Inner injections, per each directive public static $inject = ["$location", "...
By selecting a matrix and choosing "Insert Table" from the menu, you create a table which allows you to pull and insert data in a structured way. Let's say you have named the table "SalesEvents" and given that the first (header) row reads "Salesperson" "Date" ...
<md-card> <md-card-header> <md-card-header-text> <span class="md-title">This will be the title</span> <span class="md-subhead">Here goes the (smaller, lighter) sub-header</span> </md-car...
If you want your card to include buttons, use the md-card-actions directive. Buttons can also be formatted differently for icon-only buttons. Search for icons at here if you're using Google's Material Icons. <md-card> <!--header--> <md-card-content> <p> ...
To strip any number of leading components, use the --strip-components option: --strip-components=NUMBER strip NUMBER leading components from file names on extraction For example to strip the leading folder, use: tar -xf --strip-components=1 archive-name.tar
[MetadataType(typeof(RoleMetaData))] public partial class ROLE { } public class RoleMetaData { [Display(Name = "Role")] public string ROLE_DESCRIPTION { get; set; } [Display(Name = "Username")] public string ROLE_USERNAME { get; set; } } If you us...
A generic type is created to adapt so that the same functionallity can be accessible for different data types. Public Class SomeClass(Of T) Public Sub doSomething(newItem As T) Dim tempItem As T ' Insert code that processes an item of data type t. End Sub End Class ...
By creating an instance of the same class with a different type given, the interface of the class changes depending on the given type. Dim theStringClass As New SomeClass(Of String) Dim theIntegerClass As New SomeClass(Of Integer)
A generic class is a class who adapts to a later-given type so that the same functionality can be offered to different types. In this basic example a generic class is created. It has a sub who uses the generic type T. While programming this class, we don't know the type of T. In this case T has ...
In this example there are 2 instances created of the SomeClass Class. Depending on the type given the 2 instances have a different interface: Dim theStringClass As New SomeClass(Of String) Dim theIntegerClass As New SomeClass(Of Integer) The most famous generic class is List(of )
Creating a new intance of a generic type can be done/checed at compile time. Public Class SomeClass(Of T As {New}) Public Function GetInstance() As T Return New T End Function End Class Or with limited types: Public Class SomeClass(Of T As {New, SomeBaseClass}) Public F...
With this line we will install all the necessary packages in one step, and the last update: pacman -Syu apache php php-apache mariadb HTTP Edit /etc/httpd/conf/httpd.conf Change ServerAdmin [email protected] as you need. The folder of the WEB Pages by default is ServerRoot "/etc/httpd&q...

Page 558 of 826