@@ -1442,8 +1442,8 @@ def test_stats_on_callable_kernel():
14421442 y[:] = matvec20x20(A[:,:], x[:])
14431443 """ ,
14441444 [
1445- lp .GlobalArg ("x,y" , shape = (20 ,), dtype = np .float ),
1446- lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float ),
1445+ lp .GlobalArg ("x,y" , shape = (20 ,), dtype = np .float64 ),
1446+ lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float64 ),
14471447 ],
14481448 name = "matvec" )
14491449 caller = lp .merge ([caller , callee ])
@@ -1467,8 +1467,8 @@ def test_stats_on_callable_kernel_within_loop():
14671467 y[i, :] = matvec20x20(A[:,:], x[i, :])
14681468 """ ,
14691469 [
1470- lp .GlobalArg ("x,y" , shape = (20 , 20 ), dtype = np .float ),
1471- lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float ),
1470+ lp .GlobalArg ("x,y" , shape = (20 , 20 ), dtype = np .float64 ),
1471+ lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float64 ),
14721472 ],
14731473 name = "matmat" )
14741474 caller = lp .merge ([caller , callee ])
@@ -1495,8 +1495,8 @@ def test_callable_kernel_with_substitution():
14951495 y[i, :] = matvec(20, A[:,:], x[i, :])
14961496 """ ,
14971497 [
1498- lp .GlobalArg ("x,y" , shape = (20 , 20 ), dtype = np .float ),
1499- lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float ),
1498+ lp .GlobalArg ("x,y" , shape = (20 , 20 ), dtype = np .float64 ),
1499+ lp .GlobalArg ("A" , shape = (20 , 20 ), dtype = np .float64 ),
15001500 ],
15011501 name = "matmat" )
15021502 caller = lp .merge ([caller , callee ])
@@ -1518,7 +1518,7 @@ def test_no_loop_ops():
15181518 d = 2*c + a + b
15191519 """ )
15201520
1521- knl = lp .add_dtypes (knl , {"a" : np .float , "b" : np .float })
1521+ knl = lp .add_dtypes (knl , {"a" : np .float64 , "b" : np .float64 })
15221522
15231523 op_map = lp .get_op_map (knl , subgroup_size = SGS , count_redundant_work = True ,
15241524 count_within_subscripts = True )
0 commit comments