From 2c80b18f1de1efb20a8ed109eeaf908ca385d670 Mon Sep 17 00:00:00 2001 From: raver119 Date: Wed, 22 Apr 2020 12:57:26 +0300 Subject: [PATCH] disable mmap test for cuda Signed-off-by: raver119 --- .../java/org/nd4j/linalg/workspace/SpecialWorkspaceTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/workspace/SpecialWorkspaceTests.java b/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/workspace/SpecialWorkspaceTests.java index 391efa475..02876fdbb 100644 --- a/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/workspace/SpecialWorkspaceTests.java +++ b/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/workspace/SpecialWorkspaceTests.java @@ -336,6 +336,9 @@ public class SpecialWorkspaceTests extends BaseNd4jTest { @Test public void testMmapedWorkspaceLimits_1() throws Exception { + if (!Nd4j.getEnvironment().isCPU()) + return; + val tmpFile = Files.createTempFile("some", "file"); val mmap = WorkspaceConfiguration.builder() .initialSize(200 * 1024L * 1024L) // 200mbs