Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_savetxt_qp fails with ifort #88

Closed
pdebuyl opened this issue Jan 6, 2020 · 7 comments
Closed

test_savetxt_qp fails with ifort #88

pdebuyl opened this issue Jan 6, 2020 · 7 comments
Labels
topic: utilities containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...

Comments

@pdebuyl
Copy link
Contributor

pdebuyl commented Jan 6, 2020

Using "ifort (IFORT) 18.0.1 20171018" on linux x86_64, test_savetxt_qp fails

The routine qsavetxt writes one number per line, which is allowed by the star format.

I propose a fix in https://github.com/pdebuyl/stdlib/tree/qsavetxt_format_string , tested with said ifort and with gfortran 6.4.0 and 8.3.0.

I have not opened a PR yet, as I don't know if ifort compatibility is considered necessary at this point. I would support keeping stdlib working with several compilers early on.

@jvdp1
Copy link
Member

jvdp1 commented Jan 6, 2020

Is this problem related to #81? Maybe you could implement the same strategy as in #81 to avoid qp with Intel compilers and open a new PR.

However, I think your fix could be also useful for very large arrays (to avoid multiple lines for one row of an array; I didn't test it yet). However, this implies a fixed format (e.g., 'f40.34), and the same should be done for spanddp. Another option would be to discuss the API of loadtxtandsavetxt` to allow the user to specify its own format. See #16 ( comment ) and #14 for some discussions.

@pdebuyl
Copy link
Contributor Author

pdebuyl commented Jan 6, 2020

It is orthogonal to #81 I believe. ifort supports a qp type, it is only the write operation that does not output a "ncol x nrow" format.

Issue #16 is of course related but consider extensions of loadtxt and savetxt. Here, I just fix the currrent version :-)

I write a format string to avoid relying on a fixed format. The current format string can hold up to 999999 for the number of columns. At some point users should use HDF5 or another solution anyway.

@certik
Copy link
Member

certik commented Jan 6, 2020 via email

@scivision
Copy link
Member

This would be addressed by #93

@pdebuyl
Copy link
Contributor Author

pdebuyl commented Jan 6, 2020

@scivision ifort supports qp, it is only the * formatting that fails to generate colummar data files.

@pdebuyl
Copy link
Contributor Author

pdebuyl commented Jan 6, 2020

It is fixed actually, so I close the issue.

@pdebuyl pdebuyl closed this as completed Jan 6, 2020
@certik
Copy link
Member

certik commented Jan 6, 2020

This was fixed by #89.

@jvdp1 jvdp1 added topic: algorithms searching and sorting, merging, ... topic: utilities containers, strings, files, OS/environment integration, unit testing, assertions, logging, ... compilers and removed topic: algorithms searching and sorting, merging, ... labels Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: utilities containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants