Skip to content

Commit

Permalink
Enable GDS for conda build by default (#2515)
Browse files Browse the repository at this point in the history
Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL committed Dec 2, 2020
1 parent 96c4775 commit 2a85811
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conda/recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ cmake -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
-DBUILD_NVOF=${BUILD_NVOF:-ON} \
-DBUILD_NVDEC=${BUILD_NVDEC:-ON} \
-DBUILD_NVML=${BUILD_NVML:-ON} \
-DBUILD_CUFILE=${BUILD_CUFILE:-ON} \
-DLINK_LIBCUDA=${LINK_LIBCUDA:-OFF} \
-DVERBOSE_LOGS=${VERBOSE_LOGS:-OFF} \
-DWERROR=${WERROR:-ON} \
-DBUILD_WITH_ASAN=${BUILD_WITH_ASAN:-OFF} \
Expand Down
2 changes: 2 additions & 0 deletions dali/operators/reader/video_reader_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ TEST_F(VideoReaderTest, MultipleVideoResolution) {
float driverVersion = 0;
char version[80];

#if NVML_ENABLED
if (nvmlInitChecked() != NVML_SUCCESS) {
FAIL() << "nvmlInitChecked() failed";
}

if (nvmlSystemGetDriverVersion(version, sizeof version) != NVML_SUCCESS) {
FAIL() << "nvmlSystemGetDriverVersion failed!";
}
#endif

driverVersion = std::stof(version);

Expand Down
2 changes: 1 addition & 1 deletion docker/build_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ cmake ../ -DCMAKE_INSTALL_PREFIX=. \
-DBUILD_LIBSND=${BUILD_LIBSND} \
-DBUILD_NVML=${BUILD_NVML} \
-DBUILD_FFTS=${BUILD_FFTS} \
-DBUILD_CUFILE=${BUILD_CUFILE} \
-DBUILD_CUFILE=${BUILD_CUFILE} \
-DLINK_LIBCUDA=${LINK_LIBCUDA} \
-DVERBOSE_LOGS=${VERBOSE_LOGS} \
-DWERROR=${WERROR} \
Expand Down

0 comments on commit 2a85811

Please sign in to comment.