modified the Fortran C bindings for supporting multiple GPUs per node