Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: further fp32 GPU green CI enabling #2187

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
unifying cluster tests (non int)
ethanglaser committed Nov 25, 2024
commit 3f1fc5c286929443acf794bda9a34d83e1fa5bed
2 changes: 1 addition & 1 deletion sklearnex/spmd/cluster/tests/test_dbscan_spmd.py
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ def test_dbscan_spmd_gold(dataframe, queue):
from sklearnex.cluster import DBSCAN as DBSCAN_Batch
from sklearnex.spmd.cluster import DBSCAN as DBSCAN_SPMD

data = np.array([[1, 2], [2, 2], [2, 3], [8, 7], [8, 8], [25, 80]])
data = np.array([[1., 2.], [2., 2.], [2., 3.], [8., 7.], [8., 8.], [25., 80.]])

local_dpt_data = _convert_to_dataframe(
_get_local_tensor(data), sycl_queue=queue, target_df=dataframe
27 changes: 13 additions & 14 deletions sklearnex/spmd/cluster/tests/test_kmeans_spmd.py
Original file line number Diff line number Diff line change
@@ -47,22 +47,21 @@ def test_kmeans_spmd_gold(dataframe, queue):

X_train = np.array(
[
[1, 2],
[2, 2],
[2, 3],
[8, 7],
[8, 8],
[25, 80],
[5, 65],
[2, 8],
[1, 3],
[2, 2],
[1, 3],
[2, 2],
[1., 2.],
[2., 2.],
[2., 3.],
[8., 7.],
[8., 8.],
[25., 80.],
[5., 65.],
[2., 8.],
[1., 3.],
[2., 2.],
[1., 3.],
[2., 2.],
],
dtype=np.float64,
)
X_test = np.array([[0, 0], [12, 3], [2, 2], [7, 8]], dtype=np.float64)
X_test = np.array([[0., 0.], [12., 3.], [2., 2.], [7., 8.]])

local_dpt_X_train = _convert_to_dataframe(
_get_local_tensor(X_train), sycl_queue=queue, target_df=dataframe