From dff0a12bf52e0344f78c62cd897dc103ffcbf758 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Mon, 21 Oct 2024 23:58:48 -0400 Subject: [PATCH] Dockerize --- Dockerfile | 11 +++++++++++ main.cu | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ea42cd5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM nvidia/cuda:12.6.0-cudnn-devel-ubuntu22.04 + +LABEL name="PoissonRecon_GPU" maintainer="Causality-C" + +# update package lists and install git, wget, vim, libegl1-mesa-dev, and libglib2.0-0 +RUN apt-get update && apt-get install -y build-essential git wget vim libegl1-mesa-dev libglib2.0-0 unzip git tree cmake + +WORKDIR /workspace +COPY . . +RUN mkdir build && cd build && cmake .. + diff --git a/main.cu b/main.cu index 9a454b7..5864b61 100755 --- a/main.cu +++ b/main.cu @@ -3248,8 +3248,8 @@ int main() { // char fileName[]="/home/davidxu/horse.npts"; // char outName[]="/home/davidxu/horse.ply"; - char fileName[]="/home/davidxu/bunny.points.ply"; - char outName[]="/home/davidxu/bunny.ply"; + char fileName[]="/workspace/bunny.points.ply"; + char outName[]="/workspace/bunny.ply"; // char fileName[]="/home/davidxu/eagle.points.ply"; // char outName[]="/home/davidxu/eagle.ply";