There was an error while loading. Please reload this page.
2 parents 9565876 + 5baa529 commit 7102eb2Copy full SHA for 7102eb2
paddle/fluid/platform/profiler_test.cc
@@ -13,7 +13,9 @@ See the License for the specific language governing permissions and
13
limitations under the License. */
14
15
#include "paddle/fluid/platform/profiler.h"
16
+#ifdef PADDLE_WITH_CUDA
17
#include "cuda_runtime.h"
18
+#endif
19
#include "gtest/gtest.h"
20
21
TEST(Event, CpuElapsedTime) {
@@ -159,10 +161,12 @@ TEST(RecordEvent, RecordEvent) {
159
161
DisableProfiler(EventSortingKey::kTotal, "/tmp/profiler");
160
162
}
163
164
165
TEST(TMP, stream_wait) {
166
cudaStream_t stream;
167
cudaStreamCreate(&stream);
168
cudaStreamSynchronize(stream);
169
170
171
172
0 commit comments