{"id":23158747,"url":"https://github.com/greendelta/olca-mkl","last_synced_at":"2025-09-08T15:41:52.892Z","repository":{"id":181260131,"uuid":"651470749","full_name":"GreenDelta/olca-mkl","owner":"GreenDelta","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-21T14:55:36.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T18:47:14.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GreenDelta.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,"governance":null}},"created_at":"2023-06-09T10:00:17.000Z","updated_at":"2023-07-21T12:45:23.000Z","dependencies_parsed_at":"2023-07-21T13:52:02.832Z","dependency_job_id":"ad4539af-ee10-4164-bd90-c40ecf908776","html_url":"https://github.com/GreenDelta/olca-mkl","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":0.04878048780487809,"last_synced_commit":"f4b1b07b48befc78dfa68b3978fe648181b71893"},"previous_names":["msrocka/olca-mkl","greendelta/olca-mkl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GreenDelta/olca-mkl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-mkl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-mkl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-mkl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-mkl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GreenDelta","download_url":"https://codeload.github.com/GreenDelta/olca-mkl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-mkl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274209132,"owners_count":25241782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-17T22:27:23.947Z","updated_at":"2025-09-08T15:41:52.854Z","avatar_url":"https://github.com/GreenDelta.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# olca-mkl\n\nThis is an experimental project that links the Intel Math Kernel (MKL) as calculation library for openLCA. The chart below shows a performance comparison with UMFPACK for fully solving `A * x = b` for an ecoinvent 3.9 matrix including JNI overhead for communicating between JVM and native memory:\n\n![Performance comparison UMFPACK vs MKL](./performance.png)\n\n## Building\n\nThe build scripts are written in Dart so that you need to have a current version\nof Dart (3.x) installed as well as the `archive` library. To install the\nlibrary, run:\n\n```bash\ndart pub add archive\n```\n\nOn macOS with Apple M1/M2, one will need to set the Rust toolchain to\n`stable-x86_64-apple-darwin`:\n\n```bash\nrustup install stable-x86_64-apple-darwin\nrustup default stable-x86_64-apple-darwin\n```\n\nThen to build:\n\n```bash\ncd olca-mkl\ndart build.dart\n```\n\nThis will download the MKL Python package and its dependencies from pypi.org and extract the native libraries into the `bin` folder. It then compiles the bindings for the Java Native Interface (JNI) which are written in Rust against these libraries. (On Windows, it also generates a lib-file with the exported symbols for the linker first). This should then generate a `(lib)olcamkl.*` library in the `bin` folder.\n\nThe Java part has an `MKL` class with the native method-bindings and methods for loading the libraries from a folder. The method `MKL.loadFrom(DIR)` will load the libraries from the folder `{DIR}/olca-mkl-x64_v{VERSION}`. The current version is `1` (the next version would be `2`, then `3` etc.) and it is not the version of the MKL but the version of the openLCA JNI bindings for the MKL. The method `MKL.loadFromDefault()` will try to load the libraries from the openLCA default workspace `~/openLCA-data-1.4/olca-mkl-x64_v{VERSION}`. With the methods `MKL.isLibraryDir` and `MKL.isDefaultLibraryDir` you can also test if a directory contains the MKL library folder with the required libraries (useful for the integration in openLCA later).\n\n**Note** that there is only support for `x64` CPUs, e.g.  on macOS M1/2, you need to run a `x64` JVM using the compatibility layer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-mkl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreendelta%2Folca-mkl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-mkl/lists"}