java - Opencl with jocl: same computation rules for cpu and gpu -
i'm using jocl apply trigonometric functions on elements of float-array. while doing same code on both cpu , gpu @ same time, results vary minorly on 0.000x digits , rarely. must origineated differecies cores of cpu/gpu. 1 using little different algorithm(maybe i'm mistaken).
question: how can tell opencl/jocl use same rounding/ieee-rules calculate trigonometric/exponential functions?
edit: system.out.println() 's rounding incident when written on console? problem emerges especialy when applied sin() or cos() 80000 times of feedback.
thanks.
host: fx8150 devices: fx8150 + hd7870(will used on 2x xeons , 1 firegl 4800 later)
Comments
Post a Comment