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
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Japan
Slovakia