{"id":24953415,"url":"https://github.com/jonboydell/cudaminer-osx","last_synced_at":"2025-03-28T19:46:11.997Z","repository":{"id":26782253,"uuid":"30240443","full_name":"jonboydell/Cudaminer-OSX","owner":"jonboydell","description":"Cudaminer optimised for OSX","archived":false,"fork":false,"pushed_at":"2015-02-03T12:38:21.000Z","size":1432,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T03:36:05.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonboydell.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-03T11:55:15.000Z","updated_at":"2018-12-10T06:51:08.000Z","dependencies_parsed_at":"2022-07-12T16:08:46.040Z","dependency_job_id":null,"html_url":"https://github.com/jonboydell/Cudaminer-OSX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonboydell%2FCudaminer-OSX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonboydell%2FCudaminer-OSX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonboydell%2FCudaminer-OSX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonboydell%2FCudaminer-OSX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonboydell","download_url":"https://codeload.github.com/jonboydell/Cudaminer-OSX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093099,"owners_count":20722395,"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","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":"2025-02-03T03:36:36.263Z","updated_at":"2025-03-28T19:46:11.958Z","avatar_url":"https://github.com/jonboydell.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"IMPORTANT PUBLIC SERVICE ANNOUNCEMENT:\r\n\r\nThis has recently been ugpraded to use the CUDA 5.5 toolkit.\r\n\r\nIf you keep using CUDA 5.0, you will not see the amazing 30%\r\nspeed gains with David Andersen's new Kepler, Titan kernels.\r\n\r\nAlso see README.txt\r\n--\r\nCudaMiner forked from https://github.com/cbuchner1/CudaMiner\r\n--\r\n\r\nI built CUDAMINER for OSX using GCC NOT Clang.  The reason for this is that Clang doesn't seem to support something that's in the NVIDIA CUDA libraries.  Something mathematical that I can't remember and didn't write down.\r\n\r\nThe commands:\r\n\r\n./autogen.sh \r\nCFLAGS=\"-Wa,-q\" ./configure --with-cuda=/Developer/NVIDIA/CUDA-5.5\r\nmake -j 16\r\n\r\nDependencies:\r\n\r\n1. NVIDIA CUDA libraries, version 5.5 - For some reason I get 70+ khash/s with my NVIDIA GT 750M with 5.5 but only 40+ khash/s with 6.0\r\n2. OpenSSL \r\n3. CURL with SSL - I built it from scratch, along with OpenSSL using my GCC install\r\n4. Autoconf, automake, m4\r\n\r\nThings that I did:\r\n\r\n1. CFLAGS=\"-Wa,-q\" added to the configure command to ensure that we can use assembler and hopefully get a quicker binary\r\n2. \r\n\r\nProblems that I solved:\r\n\r\n1. \u003cmalloc.h\u003e should be \u003cmalloc/malloc.h\u003e\r\n2. NVCC doesn't accept the CFLAGS \"-Wa,-q\" which you need to send to GCC so that is passes through assembler commands to Clang.  Clang needs to deal with the assembler as GAS (the GCC Assembler) isn't supported on OSX.\r\n3. Looks for CUDA libs in lib64 subdirectory of the NVIDA CUDA install.  However, there is no lib64 subdirectory on OSX.\r\n4. Some problem with the NVML wrapper on OSX necessitated the removal of those files altogether.\r\n5. \r\n\r\nProblems that I introduced:\r\n\r\n1. You can't specificy CFLAGS that are intended for NVCC, these will be ignored (so that the assembler pass through commands work)\r\n2. I have built in the NVIDIA libraries dynamically, so your resulting binary will need to know where they are (assuming they're not in your system library path somewhere).\r\n\r\nProblems that I know about:\r\n\r\n1. Depending on which mining pool you use, you might get a Segmentation fault - abort (6).  I don't know what causes this but some pools are fine and some are not.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonboydell%2Fcudaminer-osx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonboydell%2Fcudaminer-osx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonboydell%2Fcudaminer-osx/lists"}