---
title: "HYDU_create_process (./utils/launch/launch.c:69): execvp error on file..错误处理"
author: "lemoncyb"
date: "2012-08-13T21:15:25Z"
tags: []
categories: ["编程语言"]
slug: "hydu-create-process-utils-launch-launch-c-69-execvp-error-on-file"
draft: false
lastmod: "2012-08-13T21:15:25Z"
id: 1630867
url: "https://lemoncyb.iteye.com/blog/1630867"
---

当编译MPI程序并且编译通过，但是执行时报错
<span style="color:red">HYDU_create_process (./utils/launch/launch.c:69): execvp error on file hello (No such file or directory)</span>
此时很可能是由于执行程序时没有使用绝对路径。
只要使用绝对路径执行程序即可，如下：

$mpicc -o cpi cpi.c
$mpirun -np 4 ./cpi（一定要加“./”）