Forceflow / cuda_voxelizer

CUDA Voxelizer to convert polygon meshes into annotated voxel grids
MIT License
583 stars 97 forks source link

CMake for Windows and Linux #39

Closed KernelA closed 4 years ago

KernelA commented 4 years ago

I changed CMake file for supporting Windows and Linux.

New option added for setting CUDA compute capability CUDA_ARCH.

I tested on Windows 10 with Visual Studio 2019, CMake 3.17 and Linux Ubuntu 18.04 inside NVIDIA docker container with CMake 3.13.

GitHub Action status build. linux-build-test Travis status build

What do you think about GitHub actions for CI? Example in the my fork you can find here

Forceflow commented 4 years ago

Hey, could you make this PR to the dev branch? I should probably put that up somewhere, sorry.

Looks really interesting. I'm not so proficient in CMAKE, but these seem like worthwhile improvements. Happy to merge to dev :)

About github actions: I'd like to implement them in addition to travis. The more the merrier :)

I'm planning on doing a small release bump later this week (now CUDA 11 is officially released, gonna recompile with the non-RC toolchain), would be nice to get this in as well.

KernelA commented 4 years ago

I wrote new GitHub Action (windows-build job) for building based on Windows Server. Process installation of CUDA 10.1 is very long. I hope that chocolatey installing is faster, but CUDA 11.0 only available.

Build status for Linux and Windows