Skip to content
Cannot retrieve contributors at this time
19 lines (17 sloc) 853 Bytes
;; Copyright (c) Dragan Djuric. All rights reserved.
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 ( or later
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.
(ns hello-world.cuda
(:require [uncomplicate.commons.core :refer [with-release]]
[uncomplicate.clojurecuda.core :refer [with-default]]
[core :refer [asum]]
[cuda :refer [cuv with-default-engine]]]))
(with-release [gpu-x (cuv 1 -2 5)]
(asum gpu-x))))
You can’t perform that action at this time.