Compiling CUDA and OpenCL codes using emscripten

60 views
Skip to first unread message

Qianqian Fang

unread,
Aug 17, 2019, 7:38:24 PM8/17/19
to emscripte...@googlegroups.com
Dear list,

I was previously under the impression that CUDA and OpenCL codes are not
supported with emscripten

https://emscripten-discuss.narkive.com/6cj8P8Xz/difficulty-in-porting-a-high-performance-monte-carlo-simulator-openmp-and-sse-support#post2

however, I just noticed this project

https://github.com/frpays/lc0-js

from README, it appears that one can compile/link with CUDA/OpenCL, and
run the app in the browser.

I haven't figured out how this was done, but wondering if someone can
confirm if this is indeed supported? does that mean GPUs be used in the
browser?

my goal is to port two of my C-based software, one use CUDA as backend
(https://github.com/fangq/mcx), the other use OpenCL as backend
(https://github.com/fangq/mcxcl).

Are there documentations or skeleton project/make files available to
compile CUDA/OpenCL?

thanks

Qianqian

Reply all
Reply to author
Forward
0 new messages