Compilation is a two step process.

In Bash you should do:
ispc -O2 --arch=x86-64 ispc_sqrt.ispc -o ispc_sqrt.o -h ispc_sqrt.h --pic

Then, in MATLAB you should do:
mex ispc_sqrt_mex.cpp ispc_sqrt.o


