Hello,
I was wondering if there has been any effort so far in interfacing OCaml
with GPU programming solutions like AMD Stream, or OpenCL.
I'm only aware of Daml (CUDA bindings).
I wrote some pieces of AMD Brook bindings a while ago to do very basic
read/write operations on GPU, plus some kernel
> # class a = let () = print_endline "hello" in object end;;
> hello
> class a : object end
>
>
> Maybe you mean the following:
>
>
?
well, I have just tested this in the toplevel
class a n =
let x = Array.make_matrix n n 0. in
object(self)
val y = Array.init n (fun i -> Array.copy x.(i))
m
Dear list,
I was just wondering whether in
class a =
let x = Array.make 1 0. in
object
val y = Array.copy x
...
end
x will be garbage collected or not.
(this is just an example, I know creating x and copying is just doesn't make
sense, but I wanted to point out that in my case, x doesn
Dear list,
this is a somewhat naive question
let's define
class a = object
val mutable v = ...
method v = v
method m = something that uses v
end ;;
now assume that I want to create a lot of those a objects, so many that I
may encounter memory problems.
I thought the following would be better