{"id":32177454,"url":"https://github.com/intel/opencl-clang","last_synced_at":"2026-04-02T20:44:22.896Z","repository":{"id":38455198,"uuid":"111158415","full_name":"intel/opencl-clang","owner":"intel","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-24T08:31:15.000Z","size":1555,"stargazers_count":139,"open_issues_count":26,"forks_count":86,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-02-24T14:41:05.254Z","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/intel.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-11-17T22:55:49.000Z","updated_at":"2026-02-01T02:03:11.000Z","dependencies_parsed_at":"2026-01-01T09:09:09.134Z","dependency_job_id":null,"html_url":"https://github.com/intel/opencl-clang","commit_stats":{"total_commits":97,"total_committers":27,"mean_commits":"3.5925925925925926","dds":0.7216494845360825,"last_synced_commit":"5491ffa3fde5729074fe804023bd279c56684f77"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/intel/opencl-clang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intel%2Fopencl-clang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intel%2Fopencl-clang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intel%2Fopencl-clang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intel%2Fopencl-clang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intel","download_url":"https://codeload.github.com/intel/opencl-clang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intel%2Fopencl-clang/sbom","scorecard":{"id":490785,"data":{"date":"2025-08-11","repo":{"name":"github.com/intel/opencl-clang","commit":"cbb558f20b708934b8b188d13d27c93a0486643c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7.4,"checks":[{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'packages' permission set to 'read': .github/workflows/codeql.yml:27","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/patch-release.yml:45","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/on-demand-verification.yml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/on-push-verification-in-tree.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/on-push-verification-out-of-tree.yml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/patch-release.yml:4","Info: topLevel 'contents' permission set to 'read': .github/workflows/scheduled-verification.yml:9"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":7,"reason":"dependency not pinned by hash detected -- score normalized to 7","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/patch-release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/intel/opencl-clang/patch-release.yml/main?enable=pin","Info:  12 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":8,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 12 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'allow deletion' disabled on branch 'ocl-open-200'","Info: 'allow deletion' disabled on branch 'ocl-open-190'","Info: 'allow deletion' disabled on branch 'ocl-open-180'","Info: 'allow deletion' disabled on branch 'ocl-open-170'","Info: 'allow deletion' disabled on branch 'ocl-open-160'","Info: 'allow deletion' disabled on branch 'ocl-open-150'","Info: 'allow deletion' disabled on branch 'ocl-open-140'","Info: 'allow deletion' disabled on branch 'ocl-open-130'","Info: 'allow deletion' disabled on branch 'ocl-open-120'","Info: 'allow deletion' disabled on branch 'ocl-open-110'","Info: 'allow deletion' disabled on branch 'ocl-open-100'","Info: 'allow deletion' disabled on branch 'ocl-open-90'","Info: 'force pushes' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'ocl-open-200'","Info: 'force pushes' disabled on branch 'ocl-open-190'","Info: 'force pushes' disabled on branch 'ocl-open-180'","Info: 'force pushes' disabled on branch 'ocl-open-170'","Info: 'force pushes' disabled on branch 'ocl-open-160'","Info: 'force pushes' disabled on branch 'ocl-open-150'","Info: 'force pushes' disabled on branch 'ocl-open-140'","Info: 'force pushes' disabled on branch 'ocl-open-130'","Info: 'force pushes' disabled on branch 'ocl-open-120'","Info: 'force pushes' disabled on branch 'ocl-open-110'","Info: 'force pushes' disabled on branch 'ocl-open-100'","Info: 'force pushes' disabled on branch 'ocl-open-90'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-200'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-190'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-180'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-170'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-160'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-150'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-140'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-130'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-120'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-110'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-100'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'ocl-open-90'","Info: 'stale review dismissal' is required to merge on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-200'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-190'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-180'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-170'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-160'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-150'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-140'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-130'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-120'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-110'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-100'","Info: 'stale review dismissal' is required to merge on branch 'ocl-open-90'","Warn: required approving review count is 1 on branch 'main'","Warn: required approving review count is 1 on branch 'ocl-open-200'","Warn: required approving review count is 1 on branch 'ocl-open-190'","Warn: required approving review count is 1 on branch 'ocl-open-180'","Warn: required approving review count is 1 on branch 'ocl-open-170'","Warn: required approving review count is 1 on branch 'ocl-open-160'","Warn: required approving review count is 1 on branch 'ocl-open-150'","Warn: required approving review count is 1 on branch 'ocl-open-140'","Warn: required approving review count is 1 on branch 'ocl-open-130'","Warn: required approving review count is 1 on branch 'ocl-open-120'","Warn: required approving review count is 1 on branch 'ocl-open-110'","Warn: required approving review count is 1 on branch 'ocl-open-100'","Warn: required approving review count is 1 on branch 'ocl-open-90'","Warn: codeowners review is not required on branch 'main'","Warn: codeowners review is not required on branch 'ocl-open-200'","Warn: codeowners review is not required on branch 'ocl-open-190'","Warn: codeowners review is not required on branch 'ocl-open-180'","Warn: codeowners review is not required on branch 'ocl-open-170'","Warn: codeowners review is not required on branch 'ocl-open-160'","Warn: codeowners review is not required on branch 'ocl-open-150'","Warn: codeowners review is not required on branch 'ocl-open-140'","Warn: codeowners review is not required on branch 'ocl-open-130'","Warn: codeowners review is not required on branch 'ocl-open-120'","Warn: codeowners review is not required on branch 'ocl-open-110'","Warn: codeowners review is not required on branch 'ocl-open-100'","Warn: codeowners review is not required on branch 'ocl-open-90'","Info: 'last push approval' is required to merge on branch 'main'","Info: 'last push approval' is required to merge on branch 'ocl-open-200'","Info: 'last push approval' is required to merge on branch 'ocl-open-190'","Info: 'last push approval' is required to merge on branch 'ocl-open-180'","Info: 'last push approval' is required to merge on branch 'ocl-open-170'","Info: 'last push approval' is required to merge on branch 'ocl-open-160'","Info: 'last push approval' is required to merge on branch 'ocl-open-150'","Info: 'last push approval' is required to merge on branch 'ocl-open-140'","Info: 'last push approval' is required to merge on branch 'ocl-open-130'","Info: 'last push approval' is required to merge on branch 'ocl-open-120'","Info: 'last push approval' is required to merge on branch 'ocl-open-110'","Info: 'last push approval' is required to merge on branch 'ocl-open-100'","Info: 'last push approval' is required to merge on branch 'ocl-open-90'","Warn: 'up-to-date branches' is disabled on branch 'main'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-200'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-190'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-180'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-170'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-160'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-150'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-140'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-130'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-120'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-110'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-100'","Warn: 'up-to-date branches' is disabled on branch 'ocl-open-90'","Info: status check found to merge onto on branch 'main'","Info: status check found to merge onto on branch 'ocl-open-200'","Info: status check found to merge onto on branch 'ocl-open-190'","Info: status check found to merge onto on branch 'ocl-open-180'","Info: status check found to merge onto on branch 'ocl-open-170'","Info: status check found to merge onto on branch 'ocl-open-160'","Info: status check found to merge onto on branch 'ocl-open-150'","Info: status check found to merge onto on branch 'ocl-open-140'","Info: status check found to merge onto on branch 'ocl-open-130'","Info: status check found to merge onto on branch 'ocl-open-120'","Info: status check found to merge onto on branch 'ocl-open-110'","Info: status check found to merge onto on branch 'ocl-open-100'","Info: status check found to merge onto on branch 'ocl-open-90'","Info: PRs are required in order to make changes on branch 'main'","Info: PRs are required in order to make changes on branch 'ocl-open-200'","Info: PRs are required in order to make changes on branch 'ocl-open-190'","Info: PRs are required in order to make changes on branch 'ocl-open-180'","Info: PRs are required in order to make changes on branch 'ocl-open-170'","Info: PRs are required in order to make changes on branch 'ocl-open-160'","Info: PRs are required in order to make changes on branch 'ocl-open-150'","Info: PRs are required in order to make changes on branch 'ocl-open-140'","Info: PRs are required in order to make changes on branch 'ocl-open-130'","Info: PRs are required in order to make changes on branch 'ocl-open-120'","Info: PRs are required in order to make changes on branch 'ocl-open-110'","Info: PRs are required in order to make changes on branch 'ocl-open-100'","Info: PRs are required in order to make changes on branch 'ocl-open-90'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T19:04:49.296Z","repository_id":38455198,"created_at":"2025-08-19T19:04:49.296Z","updated_at":"2025-08-19T19:04:49.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29958457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":"2025-10-21T20:06:47.550Z","updated_at":"2026-04-02T20:44:22.890Z","avatar_url":"https://github.com/intel.png","language":"C++","readme":"[![Scheduled verification](https://github.com/intel/opencl-clang/actions/workflows/scheduled-verification.yml/badge.svg)](https://github.com/intel/opencl-clang/actions/workflows/scheduled-verification.yml)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9059/badge)](https://www.bestpractices.dev/projects/9059)\n\nopencl-clang is a thin wrapper library around clang. The library has\nOpenCL-oriented API and is capable to compile OpenCL C kernels to SPIR-V\nmodules.\n\n## Build\n\nSource code in this repo can be built in different manners:\n* in-tree as an LLVM project\n* out-of-tree using pre-built LLVM\n\n### In-tree build\n\nBefore the build all dependencies must be downloaded and laid out as follows:\n\n```\n\u003cworkspace\u003e\n|-- llvm\n|-- clang\n|-- SPIRV-LLVM-Translator\n`-- opencl-clang\n```\n\nThis can be done using the following commands:\n```bash\ncd \u003cworkspace\u003e\ngit clone https://github.com/llvm/llvm-project.git .\ngit clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git\ngit clone https://github.com/intel/opencl-clang.git\n```\n\nThen we need to create a build directory and run the build:\n```bash\nexport OCL_CLANG_WS=\u003cworkspace\u003e\ncd $OCL_CLANG_WS\nmkdir build \u0026\u0026 cd build\ncmake -DLLVM_TARGETS_TO_BUILD=\"X86\" -DLLVM_ENABLE_PROJECTS=\"clang\" \\\n      -DLLVM_EXTERNAL_PROJECTS=\"llvm-spirv;opencl-clang\" \\\n      -DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=\"$OCL_CLANG_WS/SPIRV-LLVM-Translator\" \\\n      -DLLVM_EXTERNAL_OPENCL_CLANG_SOURCE_DIR=\"$OCL_CLANG_WS/opencl-clang\" \\\n      -DCMAKE_BUILD_TYPE=Release $OCL_CLANG_WS/llvm\nmake opencl-clang -j`nproc`\n```\n\nFor sanity check of the build please run `make check-clang` and\n`make check-llvm-spirv`\n\n### Out-of-tree build\n\nTo build opencl-clang as a standalone project, you need to obtain pre-built LLVM\nand SPIR-V Translator libraries. **Note:** currently this kind of build is\nsupported on Linux only.\n\nIf opencl-clang is used as part of another CMake project, you will need to define `OPENCL_CLANG_BUILD_EXTERNAL`.\n\nIntegration with pre-built LLVM is done using standard `find_package` way as\ndocumented in [Embedding LLVM in your project](https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project).\n\nCommands to checkout sources and build:\n```bash\ncd \u003cworkspace\u003e\ngit clone https://github.com/intel/opencl-clang.git\nmkdir build \u0026\u0026 cd build\ncmake ../opencl-clang\nmake all -j`nproc`\n```\n\n#### Configuration options\n\n##### Preferred LLVM version\n\nBy default, opencl-clang's cmake script is searching for LLVM which is built\nbased on the latest version of current branch. You can override target version of\nLLVM by using the `PREFERRED_LLVM_VERSION` cmake option:\n\nExample:\n```bash\ncmake -DPREFERRED_LLVM_VERSION=\"23.0\" ../opencl-clang\n```\n\n##### Custom LLVM installation\n\nIf LLVM is installed somewhere in custom (non-system directories) location, you\ncould point to it using the `LLVM_DIR` cmake option. **Note**: You need to\nspecify the path to a directory containing the `LLVMConfig.cmake` file.\n\nThis file is available in two different locations.\n* `\u003cINSTALL_PREFIX\u003e/lib/cmake/llvm/LLVMConfig.cmake` where `\u003cINSTALL_PREFIX\u003e`\n  is the install prefix of an installed version of LLVM. On Linux this is\n  typically `/usr/lib/cmake/llvm/LLVMConfig.cmake`.\n* `\u003cLLVM_BUILD_ROOT\u003e/lib/cmake/llvm/LLVMConfig.cmake` where `\u003cLLVM_BUILD_ROOT\u003e`\n  is the root of the LLVM build tree.\n  **Note: this is only available when building LLVM with CMake.**\n\nExample:\n```bash\ncmake -DLLVM_DIR=/path/to/installed/llvm/lib/cmake/llvm ../opencl-clang\n```\n\n##### Location of SPIR-V Translator library\n\nBy default, opencl-clang's cmake script assumes that SPIR-V Translator library\nis built as part of LLVM, installed in the same place and libLLVMSPIRVLib is\nlinked into libLLVM.\n\nIf that is not true for you, you can override this: firstly, you need to set\n`LLVMSPIRV_INCLUDED_IN_LLVM` cmake option to `OFF`. Then you need to specify\ndirectory where SPIR-V Translator is installed by using `SPIRV_TRANSLATOR_DIR`\ncmake option.\n\nExample:\n```bash\ncmake -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=/path/to/installed/spirv/translator ../opencl-clang\n```\n\nThere is a known issue (linker crash) for this kind of build on Ubuntu 16.04\nXenial.\nIn this case the following cmake option should fix it:\n```\n-DLLVM_NO_DEAD_STRIP=ON\n```\n\nInstallation directory of SPIR-V Translator is expected to contain the\nfollowing files:\n```\n\u003cinstallation_dir\u003e\n|-- include\n|   `-- LLVMSPIRVLib\n|       `-- LLVMSPIRVLib.h\n`-- lib64\n    `-- libLLVMSPIRVLib.so\n```\n\n## Contribution\nPlease submit a pull request to contribute.\n\nPlease follow [LLVM coding standards](https://llvm.org/docs/CodingStandards.html)\n\n## Report a problem\nPlease submit an [issue](https://github.com/intel/opencl-clang/issues)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintel%2Fopencl-clang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintel%2Fopencl-clang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintel%2Fopencl-clang/lists"}