Add support for Torch

(cherry picked from commit 4b6ce5568864f64404ee2dc44f0c21792be659d4)
Enable gfxAccel

(cherry picked from commit fded25b0d4ad2bb02398512b32a3f4c5bd4c3cdb)