| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages sycl)
|
| 21 | #:use-module (guix build-system cmake)
|
| 22 | #:use-module (guix gexp)
|
| 23 | #:use-module (guix git-download)
|
| 24 | #:use-module ((guix licenses) #:prefix license:)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (gnu packages)
|
| 27 | #:use-module (gnu packages boost)
|
| 28 | #:use-module (gnu packages linux)
|
| 29 | #:use-module (gnu packages llvm)
|
| 30 | #:use-module (gnu packages libffi)
|
| 31 | #:use-module (gnu packages pkg-config)
|
| 32 | #:use-module (gnu packages python)
|
| 33 | #:use-module (gnu packages rocm)
|
| 34 | #:use-module (gnu packages vulkan))
|
| 35 |
|
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 |
|
| 41 | (define-public adaptivecpp
|
| 42 | (package
|
| 43 | (name "adaptivecpp")
|
| 44 | (version "25.10.0")
|
| 45 | (source (origin
|
| 46 | (method git-fetch)
|
| 47 | (uri (git-reference
|
| 48 | (url "https://github.com/AdaptiveCpp/AdaptiveCpp/")
|
| 49 | (commit (string-append "v" version))))
|
| 50 | (file-name (git-file-name name version))
|
| 51 | (sha256
|
| 52 | (base32
|
| 53 | "0sv5f366ybzpsdpka0fb578pb4q3537h6hkn825m0kbssh32wxk7"))))
|
| 54 | (build-system cmake-build-system)
|
| 55 | |
| 56 | (native-inputs (list clang-20 lld-20 python-minimal rocm-hipcc))
|
| 57 | (inputs
|
| 58 | (list boost
|
| 59 | libffi
|
| 60 | numactl
|
| 61 | rocm-opencl-runtime
|
| 62 | rocm-device-libs
|
| 63 | rocm-hip-runtime
|
| 64 | rocr-runtime
|
| 65 | spirv-headers
|
| 66 | spirv-tools))
|
| 67 | (arguments
|
| 68 | (list
|
| 69 | #:configure-flags
|
| 70 | #~(list
|
| 71 | (string-append "-DCMAKE_EXE_LINKER_FLAGS=" "-Wl,-rpath="
|
| 72 | #$output "/lib,-rpath="
|
| 73 | #$output "/lib/hipSYCL/llvm-to-backend")
|
| 74 | (string-append
|
| 75 | "-DACPP_LLD_PATH=" (search-input-file %build-inputs "/bin/ld.lld"))
|
| 76 | "-DWITH_ROCM_BACKEND=ON"
|
| 77 | (string-append
|
| 78 | "-DROCM_PATH=" #$(this-package-input "rocm-device-libs"))
|
| 79 | (string-append
|
| 80 | "-DROCM_DEVICE_LIBS_PATH=" #$(this-package-input "rocm-device-libs")
|
| 81 | "/amdgcn/bitcode"))
|
| 82 | #:tests? #f)) |
| 83 | (home-page "https://adaptivecpp.github.io/")
|
| 84 | (synopsis
|
| 85 | "Compiler for multiple programming models for CPUs and GPUs")
|
| 86 | (description
|
| 87 | "AdaptiveCpp is a community-driven compiler for C++-based heterogeneous
|
| 88 | programming models. It implements SYCL, C++ standard parallelism, and
|
| 89 | HIP/CUDA, targeting CPUs and GPUs from all major vendors. AdaptiveCpp lets
|
| 90 | applications adapt themselves to all the hardware found in the system. This
|
| 91 | includes use cases where a single binary needs to be able to target all
|
| 92 | supported hardware, or utilize hardware from different vendors
|
| 93 | simultaneously.")
|
| 94 | (license license:bsd-2)))
|