This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__global__ | |
void fmaTest(float* const values) | |
{ | |
const unsigned int tidx = threadIdx.x; | |
const float b = values[ tidx]; | |
float a = values[2*tidx]; | |
a = __fmaf_rn(a, b, 0.73f); | |
a = __fmaf_rn(a, b, 0.37f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__global__ | |
void fmuladdTest(float* const values) | |
{ | |
const unsigned int tidx = threadIdx.x; | |
const float b = values[ tidx]; | |
float a = values[2*tidx]; | |
a = __fmul_rn(a, b); | |
a = __fadd_rn(a, 0.73f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// | |
// | |
// | |
#define LAUNCH_BOUNDS // __launch_bounds__(512) | |
#define DEVICE_FUNCTION_QUALIFIERS __device__ |
NewerOlder