Fork me on GitHub
#uncomplicate
<
2024-04-06
>
frankitox20:04:36

Anyone knows any repo with a basic hello world of neanderthal using deps.edn?

frankitox20:04:04

I just tried the following:

{:paths ["src"]
 :deps {org.clojure/clojure {:mvn/version "1.12.0-alpha5"}
        uncomplicate/neanderthal {:mvn/version "0.48.0"}
        org.bytedeco/mkl$linux-x86_64-redist {:mvn/version "2024.0-1.5.10"}
        org.bytedeco/cuda$linux-x86_64-redist {:mvn/version "12.3-8.9-1.5.10"}
        nrepl/nrepl {:mvn/version "1.0.0"}
        refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}
        cider/cider-nrepl {:mvn/version "0.31.0"}}}
with a dummy main
(ns main
  (:require
    [uncomplicate.neanderthal.core :as nean]
    [uncomplicate.neanderthal.native :as native]))

(defn -main [& args]
  (println "Hello world!"))
But when running clj --main main I get an integer overflow error

frankitox20:04:16

The problem seems to happen when requiring uncomplicate.neanderthal.native :thinking_face:

Carsten Behring09:05:10

I think I have the same problem. Discussed here: https://github.com/uncomplicate/deep-diamond/issues/22 I believe it is related to setting not setting of any of these;

(set! *warn-on-reflection* true)
(set! *assert* false)
(set! *unchecked-math* :warn-on-boxed)
(set! *print-length* 16)

Carsten Behring09:05:45

So it does work in the neanderthsal provided leining based example repos, as they do set it.

Carsten Behring09:05:33

in my setup it's absolutely clear. It fails with above exception, unless I use: "(set! unchecked-math :warn-on-boxed)"

frankitox02:05:01

Thank you 🙏, I will try this