Repository navigation
Add OpenCL opcodes (cladsyn) - #45
Merged
Merged
Conversation
Port the Csound 6.x OpenCL plugin (cladsynth.c) to the Csound 7 plugin API as the cladsyn opcode, plus the CMake plumbing to build it on all platforms: - 7.x/src/OpenCL: source and CMakeLists with a BUILD_OPENCL_OPCODES option, using find_package(OpenCL) (system framework on macOS, ocl-icd on Linux, vcpkg opencl port on Windows). - 7.x/CMakeLists.txt: add the OpenCL subdirectory. - 7.x/vcpkg.json and x64-windows-csound.cmake: add the windows-only opencl dependency with dynamic linkage. - CI: install ocl-icd-opencl-dev on Linux and stage the OpenCL plugins on Linux and macOS. - README: document the opcode, the note and the build option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the Csound 6.x OpenCL plugin (
cladsynth.c) to the Csound 7 plugin API as thecladsynopcode.Changes
7.x/src/OpenCL/— 7.x port ofcladsynth.cand aCMakeLists.txtwith aBUILD_OPENCL_OPCODESoption.find_package(OpenCL)uses the system framework on macOS, the ICD loader on Linux (ocl-icd-opencl-dev) and the vcpkgopenclport on Windows.7.x/CMakeLists.txt— add the OpenCL subdirectory.7.x/vcpkg.json,7.x/x64-windows-csound.cmake— add the windows-onlyopencldependency with dynamic linkage.ocl-icd-opencl-devon Linux and stage the OpenCL plugins on Linux and macOS (Windows staging is recursive).Notes
cladsynth.cpp,cladsynth2.cppvariants and the unusedopenclop.cpphelper are intentionally not carried over.clconvcannot be ported (no source is present in the repository or its history).-framework OpenCL. CI builds it compile-only (no OpenCL device on the runners).