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.
Should be fixed in 5.0.4 scheduled in 7/2024
from ompi.
Related Issues (20)
- 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
- lower coll accelerator priority
- Improve documentation of the `coll tuned` component
- mpirun V5.0.3 hangs running hello_world in two nodes HOT 15
- Reduce collectives latency by reusing temporary buffers
- unable to find /usr/lib64/libmunge.la HOT 4
- Bad persistent collective communication performance HOT 2
- Wrong configure check for cuMemFree HOT 1
- v5.0.4rc1 release
- Why does the program still listen to 0.0.0.0 after I set the mca parameter btl_tcp_if_include,the btl_tcp_if_include not effect? HOT 11
- Build fails with LTO
- Build fails with strict-aliasing violations
- Memory leaks when calling mpi_file_write_all HOT 1
- Current status of the communication resources instance optimization HOT 2
- io/ompio: mca parameters are not recognized in some instances
- refactor --with-prrte configure option HOT 2
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.