Now, we will take a look at the CUDA Math API. This is a library that consists of device functions similar to those in the standard C math.h library that can be called from individual threads in a kernel. One difference here is that single and double valued floating-point operations are overloaded, so if we use sin(x) where x is a float, the sin function will yield a 32-bit float as the output, while if x were a 64-bit double, then the output of sin would also be a 64-bit value (Usually, this is the proper name for a 32-bit function, but it has an f at the end, such as sinf). There are also additional instrinsic functions. Intrinsic functions are less accurate but faster math functions that are built into the NVIDIA CUDA hardware; generally, they have similar names to the original function, except that they are preceded with two underscores—therefore,...
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine