{"id":23701310,"url":"https://github.com/p-costa/convert-precision","last_synced_at":"2026-02-16T13:04:27.861Z","repository":{"id":45481687,"uuid":"191809663","full_name":"p-costa/convert-precision","owner":"p-costa","description":"A code to convert the precision of very large binary files from double/single to single/double in parallel, using MPI I/O","archived":false,"fork":false,"pushed_at":"2022-10-10T21:13:50.000Z","size":33,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T12:54:21.228Z","etag":null,"topics":["conversion","fortran","high-performance-computing","input-output","mpi","precision"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p-costa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-13T17:55:02.000Z","updated_at":"2022-12-19T16:01:02.000Z","dependencies_parsed_at":"2023-01-19T18:15:11.458Z","dependency_job_id":null,"html_url":"https://github.com/p-costa/convert-precision","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/p-costa/convert-precision","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-costa%2Fconvert-precision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-costa%2Fconvert-precision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-costa%2Fconvert-precision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-costa%2Fconvert-precision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-costa","download_url":"https://codeload.github.com/p-costa/convert-precision/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-costa%2Fconvert-precision/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conversion","fortran","high-performance-computing","input-output","mpi","precision"],"created_at":"2024-12-30T09:36:36.727Z","updated_at":"2026-02-16T13:04:27.845Z","avatar_url":"https://github.com/p-costa.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Convert Precision\n\nThis Fortran program converts large binary files in parallel from/to single to/from double precision, using MPI-I/O. The code assumes that the each file contains *only* single- or double-precision floating-point numbers.\n\n### Usage\n\n  1. build the Fortran program:\n```bash\nmpif90 -O3 -D_SINGLE_TO_DOUBLE convert_precision.F90 -o single2double # executable for single-to-double conversion\nmpif90 -O3 -D_DOUBLE_TO_SINGLE convert_precision.F90 -o double2single # executable for double-to-single conversion\n```\nn.b.: by default, the compiled executable from `mpif90 convert_precision.F90` will convert from double to single precision.\n\n  2. list the files to be converted in a file `files.in`. For instance:\n```bash\nls a.bin b.bin c.bin \u003e files.in\n```\n\n  3. run the code, e.g.:\n```bash\nNUM_TASKS=16\nmpirun -n $NUM_TASKS ./double2single\n```\n\n  4. done! the converted files are generated with the same name as the original file, with the extension `.converted` appended, i.e., for the example above:\n```bash\n$ ls *.converted\na.bin.converted b.bin.converted c.bin.converted\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-costa%2Fconvert-precision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-costa%2Fconvert-precision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-costa%2Fconvert-precision/lists"}