diff --git a/CMakeLists.txt b/CMakeLists.txt index 450246e..90c4ef9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.21) -project(NurbsEvaluator LANGUAGES CXX CUDA) +project(NurbsPerformer LANGUAGES CXX CUDA) set(CMAKE_CUDA_STANDARD 14) -add_executable(NurbsEvaluator src/main.cpp +add_executable(NurbsPerformer src/main.cpp src/utils.cpp include/utils.h src/device/Nurbs/nurbs_common.cu include/device/Nurbs/nurbs_common.cuh src/device/device_utils.cu include/device/device_utils.cuh @@ -20,7 +20,7 @@ add_executable(NurbsEvaluator src/main.cpp # 指定静态库位置 #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) #生成静态库 -#add_library(NurbsEvaluator NurbsEvaluator.cu NurbsEvaluator.cuh utils.cpp utils.h) +#add_library(NurbsPerformer NurbsPerformer.cu NurbsPerformer.cuh utils.cpp utils.h) # 引用系统环境变量CUDA_PATH # linux @@ -32,7 +32,7 @@ include_directories("$ENV{CUDA_PATH}/include") #MESSAGE("CUDA PATH::: $ENV{LD_LIBRARY_PATH}") #MESSAGE("CUDA PATH::: $ENV{CPATH}") -set_target_properties(NurbsEvaluator PROPERTIES +set_target_properties(NurbsPerformer PROPERTIES CUDA_SEPARABLE_COMPILATION ON) diff --git a/README.md b/README.md index ff9954e..857084c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # NurbsEvaluator -A tool for evaluating multiple NURBS curve/surface points using the GPU. +A tool for performing NURBS curve/surface modeling operations in parallel using the GPU. ## Dependencies diff --git a/src/main.cpp b/src/main.cpp index e3df294..61f004d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,7 +41,7 @@ int main() { {2, 0.5, 3, 0.4}, {3, 3, 1, 0.5}, {4, -5, 0, 0.7}}, - {0, 0, 0.1, 0.2, 0.5, 0.8, 1, 1, 1}); + {0, 0, 0, 0.1, 0.5, 0.8, 1, 1, 1}); nurbsCurveEvaluator.setRecordTime(true); auto res = nurbsCurveEvaluator.evaluate(11);