summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx.l
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-07-16 12:47:47 -0800
committerTor Aamodt <[email protected]>2010-07-16 12:47:47 -0800
commit748a2d560b0032049e12ec57e8000941ff3e589a (patch)
treef0c5e7d13321bdf76577255fb322b6586e87a7f5 /src/cuda-sim/ptx.l
parent93a64be21eb3746de0b96a2f2a365f59cd8f1bbc (diff)
- BlackScholes passing on CUDA 3.1
- Added fma operation by simply calling mad, however in reality fma is supposed to be more accurate than mad. For now, properly emulating fma (to get the extra precision) isn't a priority. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6839]
Diffstat (limited to 'src/cuda-sim/ptx.l')
-rw-r--r--src/cuda-sim/ptx.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx.l b/src/cuda-sim/ptx.l
index d764c7f..3ef1071 100644
--- a/src/cuda-sim/ptx.l
+++ b/src/cuda-sim/ptx.l
@@ -129,6 +129,7 @@ membar TC; ptx_lval.int_value = MEMBAR_OP; return OPCODE;
red TC; ptx_lval.int_value = RED_OP; return OPCODE;
brkpt TC; ptx_lval.int_value = BRKPT_OP; return OPCODE;
addc TC; ptx_lval.int_value = ADDC_OP; return OPCODE;
+fma TC; ptx_lval.int_value = FMA_OP; return OPCODE;
<INITIAL,NOT_OPCODE>{