Comments (5)
Thanks Jeff for the report, I will have a look.
I am able to reproduce the issue (with GNU compilers fwiw)
Fun fact: no error if i run in singleton mode and/or use romio
$ mpirun -np 1 ./d
I am 0 of 1 of WORLD
filename = "a "
open failed
why? MPI_ERR_OTHER: known error not in list
close failed
why? MPI_ERR_FILE: invalid file
delete failed
why? MPI_ERR_FILE: invalid file
filename = "aa "
done
$ mpirun -np 1 --mca io ^ompio ./d
I am 0 of 1 of WORLD
filename = "a "
filename = "aa "
done
$ ./d
I am 0 of 1 of WORLD
filename = "a "
filename = "aa "
done
from ompi.
singleton vs mpirun
was fun but unrelated to the root cause.
here is a patch (opal_basename()
does not correctly handle single character filename !), I will issue a PR later
diff --git a/opal/util/basename.c b/opal/util/basename.c
index 0a57b07078..ad873f2c7c 100644
--- a/opal/util/basename.c
+++ b/opal/util/basename.c
@@ -77,16 +77,18 @@ char *opal_basename(const char *filename)
/* Remove trailing sep's (note that we already know that strlen > 0) */
tmp = strdup(filename);
- for (i = strlen(tmp) - 1; i > 0; --i) {
- if (sep == tmp[i]) {
- tmp[i] = '\0';
- } else {
- break;
+ if (1 < strlen(tmp)) {
+ for (i = strlen(tmp) - 1; i > 0; --i) {
+ if (sep == tmp[i]) {
+ tmp[i] = '\0';
+ } else {
+ break;
+ }
+ }
+ if (0 == i) {
+ tmp[0] = sep;
+ return tmp;
}
- }
- if (0 == i) {
- tmp[0] = sep;
- return tmp;
}
/* Look for the final sep */
from ompi.
@ggouaillardet thank you for identifying the issue, can you file a PR with the fix?
from ompi.
Sorry for the delay, I just issued #12632
from ompi.
Related Issues (20)
- coll_tuned_dynamic_rules_filename option no way to set alltoall_algorithm_max_requests from the rules file
- coll_tuned_use_dynamic_rules wrong scoping for tools interface
- Fflush(stdout) doesn't work as expected. HOT 6
- small array of derived data type(in Fortran) can be sent by MPI_Isend and MPI_Irecv but it ran into errors when I augment the array HOT 4
- DVM environment variable? HOT 4
- Error while building from source openmpi 5.0.3 HOT 2
- Fault tolerant error when re spawn process in mpiexec in remote node
- fortran .mod files installed in libdir instead of includedir HOT 34
- PMIX_ERROR when MPI_Comm_spawn in multiple nodes HOT 13
- coll tuned alltoall algorithm ignored after initialization
- Build fail on Mac M3 with macOS clang 15 HOT 1
- Mystery error on exit HOT 4
- pkgconfig files not installed with `--enable-script-wrapper-compilers` HOT 3
- mpirun nccl-test hang HOT 6
- Reduce_local Segmentation fault when Running with IMB-MPI1 built for GPU HOT 3
- mpirun 5.0.3 has bug on parse shell args while 4.1.6 works well. HOT 13
- Remove script wrappers in v6.0.x HOT 3
- 5.0.3: hostfile help file is misnamed HOT 3
- Warnings in oshmem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ompi.