BUGFIX: use #defined constants
synchronize after setting up shared memory
implement shared mem for ffty and iffty