The permanent electric dipole moment (EDM) of the ^{171}Yb (I=1/2) atom is measured with atoms held in an optical dipole trap. By enabling a cycling transition that is simultaneously spin-selective and spin-preserving, a quantum nondemolition measurement with a spin-detection efficiency of 50% is realized. A systematic effect due to parity mixing induced by a static E field is observed, and is suppressed by averaging between measurements with optical dipole traps in opposite directions. The coherent spin precession time is found to be much longer than 300 s. The EDM is determined to be d(^{171}Yb)=(-6.8±5.1_{stat}±1.2_{syst})×10^{-27} e cm, leading to an upper limit of |d(^{171}Yb)|<1.5×10^{-26} e cm (95% C.L.). These measurement techniques can be adapted to search for the EDM of ^{225}Ra.