Skip to content

Commit

Permalink
Make TF CUDA unit tests dependent on tf_cuda_support tool
Browse files Browse the repository at this point in the history
  • Loading branch information
valsdav committed Mar 18, 2024
1 parent 9370a04 commit fcc3e4f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions PhysicsTools/TensorFlow/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">
<iftool name="tf_cuda_support">
<bin name="testTFHelloWorldCUDA" file="testRunner.cpp,testHelloWorldCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -29,7 +29,7 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">
<iftool name="tf_cuda_support">
<bin name="testTFMetaGraphLoadingCUDA" file="testRunner.cpp,testMetaGraphLoadingCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -52,7 +52,7 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">
<iftool name="tf_cuda_support">
<bin name="testTFGraphLoadingCUDA" file="testRunner.cpp,testGraphLoadingCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -75,7 +75,8 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">

<iftool name="tf_cuda_support">
<bin name="testTFConstSessionCUDA" file="testRunner.cpp,testConstSessionCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -98,7 +99,7 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">
<iftool name="tf_cuda_support">
<bin name="testTFSessionCacheCUDA" file="testRunner.cpp,testSessionCacheCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -121,7 +122,8 @@
<use name="PhysicsTools/TensorFlow"/>
</bin>

<iftool name="cuda">

<iftool name="tf_cuda_support">
<bin name="testTFThreadPoolsCUDA" file="testRunner.cpp,testThreadPoolsCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand All @@ -145,7 +147,7 @@
</bin>


<iftool name="cuda">
<iftool name="tf_cuda_support">
<bin name="testTFVisibleDevicesCUDA" file="testRunner.cpp,testVisibleDevicesCUDA.cc">
<use name="boost_filesystem"/>
<use name="catch2"/>
Expand Down

0 comments on commit fcc3e4f

Please sign in to comment.