mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Compare commits
6 Commits
1b481dc80b
...
6b9df58824
Author | SHA1 | Date | |
---|---|---|---|
|
6b9df58824 | ||
|
f610044d79 | ||
|
6f5f654878 | ||
|
b6a0e4d79b | ||
|
638d183567 | ||
|
1078d7dfb4 |
@ -261,6 +261,7 @@ test:ubuntu1804_cuda_perftest:
|
||||
variables:
|
||||
TEST_INCLUSIONS: "PerformanceTest"
|
||||
VTKm_PERF_REMOTE_URL: "https://vbolea:$VTKM_BENCH_RECORDS_TOKEN@gitlab.kitware.com/vbolea/vtk-m-benchmark-records.git"
|
||||
VTKm_PERF_BENCH_DEVICE: "cuda"
|
||||
VTKm_PERF_ALPHA: "0.05"
|
||||
VTKm_PERF_REPETITIONS: "10"
|
||||
VTKm_PERF_DIST: "t"
|
||||
|
@ -76,6 +76,14 @@ function(add_benchmark_test benchmark)
|
||||
set(VTKm_PERF_COMPARE_JSON "${CMAKE_BINARY_DIR}/$ENV{CI_COMMIT_SHA}_${VTKm_PERF_NAME}.json")
|
||||
endif()
|
||||
|
||||
# Only upload when we are inside a CI build and in master. We need to check
|
||||
# if VTKM_BENCH_RECORDS_TOKEN is either defined or non-empty, the reason is
|
||||
# that in Gitlab CI Variables for protected branches are also defined in MR
|
||||
# from forks, however, they are empty.
|
||||
if (DEFINED ENV{VTKM_BENCH_RECORDS_TOKEN} AND NOT $ENV{VTKM_BENCH_RECORDS_TOKEN} STREQUAL "")
|
||||
set(enable_upload TRUE)
|
||||
endif()
|
||||
|
||||
set(test_name "PerformanceTest${VTKm_PERF_NAME}")
|
||||
|
||||
###TEST INVOKATIONS##########################################################
|
||||
@ -117,12 +125,7 @@ function(add_benchmark_test benchmark)
|
||||
-P "${VTKm_SOURCE_DIR}/CMake/testing/VTKmPerformanceTestReport.cmake"
|
||||
)
|
||||
|
||||
|
||||
# Only upload when we are inside a CI build and in master. We need to check
|
||||
# if VTKM_BENCH_RECORDS_TOKEN is non-empty, the reason is that in Gitlab CI
|
||||
# Variables for protected branches are also defined in MR from forks,
|
||||
# however, they are empty.
|
||||
if ($ENV{VTKM_BENCH_RECORDS_TOKEN})
|
||||
if (enable_upload)
|
||||
add_test(NAME "${test_name}Upload"
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
"-DVTKm_PERF_REPO=${VTKm_PERF_REPO}"
|
||||
|
@ -80,10 +80,14 @@ if(VTKm_ENABLE_PERFORMANCE_TESTING)
|
||||
REGEX BenchTetrahedralize
|
||||
)
|
||||
add_benchmark_test(BenchmarkFilters
|
||||
NAME BenchContour
|
||||
NAME BenchContourStructured
|
||||
REGEX
|
||||
BenchContour/IsStructuredDataSet:1/NIsoVals:12/MergePts:1/GenNormals:0.*/MultiPartitioned:0
|
||||
BenchContour/IsStructuredDataSet:1/NIsoVals:12/MergePts:0/GenNormals:1/FastNormals:1.*/MultiPartitioned:0
|
||||
)
|
||||
add_benchmark_test(BenchmarkFilters
|
||||
NAME BenchContourUnstructured
|
||||
REGEX
|
||||
BenchContour/IsStructuredDataSet:0/NIsoVals:12/MergePts:1/GenNormals:0.*/MultiPartitioned:0
|
||||
BenchContour/IsStructuredDataSet:0/NIsoVals:12/MergePts:0/GenNormals:1/FastNormals:1.*/MultiPartitioned:0
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user