Skip to content

Commit

Permalink
Skip advanced RNG tests on any setup that's missing cuRand
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Aug 2, 2023
1 parent d54a3dd commit 30b79e1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/integration/test_random_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
#
import os
import sys

import numpy as np
import pytest
Expand All @@ -22,7 +21,7 @@
import cunumeric as num

LEGATE_TEST = os.environ.get("LEGATE_TEST", None) == "1"
if sys.platform == "darwin":
if not num.runtime.has_curand:
pytestmark = pytest.mark.skip()
BITGENERATOR_ARGS = []
else:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_random_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys

import numpy as np
import pytest
from utils.random import ModuleGenerator, assert_distribution

import cunumeric as num

if sys.platform == "darwin":
if not num.runtime.has_curand:
pytestmark = pytest.mark.skip()
BITGENERATOR_ARGS = []
else:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_random_bitgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys

import numpy as np
import pytest
from utils.random import ModuleGenerator, assert_distribution

import cunumeric as num

if sys.platform == "darwin":
if not num.runtime.has_curand:
pytestmark = pytest.mark.skip()
BITGENERATOR_ARGS = []
else:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_random_gamma.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys

import numpy as np
import pytest
from utils.random import ModuleGenerator, assert_distribution

import cunumeric as num

if sys.platform == "darwin":
if not num.runtime.has_curand:
pytestmark = pytest.mark.skip()
BITGENERATOR_ARGS = []
else:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_random_straightforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
# limitations under the License.
#
import math
import sys

import numpy as np
import pytest
from utils.random import ModuleGenerator, assert_distribution

import cunumeric as num

if sys.platform == "darwin":
if not num.runtime.has_curand:
pytestmark = pytest.mark.skip()
BITGENERATOR_ARGS = []
else:
Expand Down

0 comments on commit 30b79e1

Please sign in to comment.