where are you configuring the '--with-cuda --cuda-prefix $CUDA_HOME' config flags?