exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
15.18k stars 522 forks source link

Build with gpu parallelization fails #193

Open L1nkus opened 1 year ago

L1nkus commented 1 year ago
$> codon build -release mandelbrot_gpu.codon
/usr/bin/ld: mandelbrot_gpu.o: in function `main':
mandelbrot_gpu.codon:(.text+0x2ae): undefined reference to `seq_nvptx_load_module'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x3cb): undefined reference to `seq_nvptx_device_alloc'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x3dc): undefined reference to `seq_nvptx_memcpy_h2d'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x3f8): undefined reference to `seq_nvptx_device_alloc'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x410): undefined reference to `seq_nvptx_memcpy_h2d'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x45f): undefined reference to `seq_nvptx_function'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x4a4): undefined reference to `seq_nvptx_invoke'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x4ca): undefined reference to `seq_nvptx_memcpy_d2h'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x510): undefined reference to `seq_nvptx_memcpy_d2h'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x51b): undefined reference to `seq_nvptx_device_free'
/usr/bin/ld: mandelbrot_gpu.codon:(.text+0x523): undefined reference to `seq_nvptx_device_free'

gpu: GTX 1050ti

arshajii commented 1 year ago

Sorry for the delay -- the pre-built binaries on GitHub don't have the GPU backend enabled currently, so you would need to build from source with the backend enabled. (Or is this with already with a GPU-enabled build?)