{"id":30683211,"url":"https://github.com/matrix97317/pig-solver","last_synced_at":"2026-05-05T08:32:23.807Z","repository":{"id":196959216,"uuid":"357794396","full_name":"matrix97317/pig-solver","owner":"matrix97317","description":"This is  a toy deep-learning computing framework( such as Pytorch,Caffe etc.).","archived":false,"fork":false,"pushed_at":"2021-07-18T02:33:40.000Z","size":394,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T19:18:56.077Z","etag":null,"topics":["caffe","cpp","deeplearning","deeplearning-framework","pytorch","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matrix97317.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-14T06:12:39.000Z","updated_at":"2023-11-29T06:12:06.000Z","dependencies_parsed_at":"2023-09-28T12:15:16.733Z","dependency_job_id":null,"html_url":"https://github.com/matrix97317/pig-solver","commit_stats":null,"previous_names":["fengjinyuan/pig_tensor","matrix97317/pig_tensor","matrix97317/pig-solver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matrix97317/pig-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix97317%2Fpig-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix97317%2Fpig-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix97317%2Fpig-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix97317%2Fpig-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrix97317","download_url":"https://codeload.github.com/matrix97317/pig-solver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrix97317%2Fpig-solver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32642007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["caffe","cpp","deeplearning","deeplearning-framework","pytorch","tensorflow"],"created_at":"2025-09-01T19:10:15.431Z","updated_at":"2026-05-05T08:32:23.785Z","avatar_url":"https://github.com/matrix97317.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Pig Solver\nThis is a simple deep learning framework, which does not rely on a third-party library. If you need to use efficient numerical calculation, openblas is the only third-party library that needs to be installed.\n\n![WX20210501-111223@2x](./img/WX20210501-111223@2x.png)\n\n#### Install OpenBLAS\nIf you want to speed up running , you need to install OpenBLAS, a third-party dependency.\n##### 1. Install OpenBLAS on MacOS\n``` bash\nbrew install openblas\n```\n##### 2. Install OpenBLAS on Linux\nIn this part, we take the Linux system of Debian  as an example.\n``` bash\n# 1. Check your gfortran tool.\n$ gfortran -v\nIf prompting command does not exist, you need to install it.\n# 2. Install gfortran\n$ mkdir your_software_install_path/opt/gfortran/\n$ cd your_software_install_path/opt/gfortran/\n$ wget https://gfortran.meteodat.ch/download/x86_64/releases/gcc-4.8.5.tar.xz \n$ xz -d gcc-4.8.5.tar.xz\n$ tar -xvf gcc-4.8.5.tar\nvim ~/.bashrc\nexport LD_LIBRARY_PATH=your_software_install_path/opt/gfortran/gcc-4.8.5/lib64:your_software_install_path/opt/gfortran/gcc-4.8.5/lib:$LD_LIBRARY_PATH\nexport PATH=your_software_install_path/opt/gfortran/gcc-4.8.5/bin:$PATH\nsource ~/.bashrc\n# 3. Install OpenBLAS\n$ git clone https://github.com/xianyi/OpenBLAS.git\n$ cd OpenBLAS\n$ make FC=gfortran -j 8\n$ sudo make PREFIX=your_software_install_path/opt/OpenBLAS install\n```\n#### Prepare CMakeLists.txt\n##### 1. MacOS\n``` bash\ncmake_minimum_required(VERSION 3.15)\nproject(pig_solver)\nset(CMAKE_CXX_STANDARD 11)\nset(CMAKE_CXX_COMPILER \"your_software_install_path/clang++\" )\nset(CMAKE_C_COMPILER \"your_software_install_path/clang\")\nset(CMAKE_CXX_FLAGS \"-fopenmp -mavx -O3\")\n\ninclude_directories(\"/usr/local/include\" \t\t\t\t     \"your_software_install_path/llvm/include\" \"your_software_install_path/opt/OpenBLAS/include\")\n\nlink_directories(\"/usr/local/lib\" \n\"your_software_install_path/llvm/lib\" \n\"your_software_install_path/opt/OpenBLAS/lib\")\n\nadd_executable(main main.cpp)\ntarget_link_libraries(main -lomp -lblas -llapack)\n```\n##### 2. Linux\n``` bash\ncmake_minimum_required(VERSION 3.15)\nset(CMAKE_CXX_STANDARD 11)\nset(CMAKE_CXX_FLAGS \"-fopenmp -mavx -msse -O3\")\nset(CMAKE_CXX_COMPILER \"your_software_install_path/opt/gfortran/gcc-4.8.5/bin/g++\" )\nset(CMAKE_C_COMPILER \"your_software_install_path/opt/gfortran/gcc-4.8.5/bin/gcc\")\nproject(pig_solver)\nset(CMAKE_VERBOSE_MAKEFILE ON)\ninclude_directories(\"/usr/local/include\" \"your_software_install_path/opt/gfortran/gcc-4.8.5/include\" \"your_software_install_path/opt/OpenBLAS/include\")\nlink_directories(\"/usr/local/lib\" \"your_software_install_path/opt/gfortran/gcc-4.8.5/lib\" \"your_software_install_path/opt/gfortran/gcc-4.8.5/gcc-4.8.5/lib64\" \"your_software_install_path/opt/OpenBLAS/lib\")\nadd_executable(main main.cpp)\ntarget_link_libraries(main libopenblas.a)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrix97317%2Fpig-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrix97317%2Fpig-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrix97317%2Fpig-solver/lists"}