             let module = try Module(ptx: ptx)
             let saxpy = module.function(named: "sum")!
 
-            var x = DeviceArray<Float>(Array(sequence(first: 0, next: {$0+1}).prefix(512)))
+            let x = DeviceArray<Float>(Array(sequence(first: 0, next: {$0+1}).prefix(512)))
             var out = DeviceValue<Float>()
 
             /// Launch kernel
-            try saxpy<<<(1, 1)>>>[.array(&x), .int(Int32(x.count)), .value(&out)]
+            try saxpy<<<(1, 1)>>>[.constantArray(x), .int(Int32(x.count)), .value(&out)]
 
             XCTAssertEqual(out.value, 130816)
         }

    
    static var allTests : [(String, (WarpTests) -> () throws -> Void)] {
        return [
        ]
    }


            let module = try Module(ptx: ptx)
            let saxpy = module.function(named: "saxpy")!

            let x = DeviceArray<Float>(Array(sequence(first: 0, next: {$0+1}).prefix(512)))
            let y = DeviceArray<Float>(Array(sequence(first: 512, next: {$0-1}).prefix(512)))
            var out = DeviceArray<Float>(capacity: 512)

            /// Launch kernel
            try saxpy<<<(32, 128)>>>[.float(5.1), .constantArray(x), .constantArray(y), .array(&out), .int(512)]
            
            XCTAssertEqual(out.hostArray, [512.0, 516.099976, 520.200012, 524.299988, 528.400024, 532.5, 536.599976, 540.700012, 544.799988, 548.900024, 553.0, 557.099976, 561.200012, 565.299988, 569.400024, 573.5, 577.599976, 581.700012, 585.799988, 589.900024, 594.0, 598.099976, 602.200012, 606.299988, 610.400024, 614.5, 618.599976, 622.700012, 626.799988, 630.900024, 635.0, 639.099976, 643.200012, 647.299988, 651.400024, 655.5, 659.599976, 663.700012, 667.799988, 671.900024, 676.0, 680.099976, 684.200012, 688.299988, 692.400024, 696.5, 700.599976, 704.700012, 708.799988, 712.900024, 717.0, 721.099976, 725.199951, 729.299988, 733.400024, 737.5, 741.599976, 745.699951, 749.799988, 753.900024, 758.0, 762.099976, 766.199951, 770.299988, 774.400024, 778.5, 782.599976, 786.699951, 790.799988, 794.900024, 799.0, 803.099976, 807.199951, 811.299988, 815.400024, 819.5, 823.599976, 827.699951, 831.799988, 835.900024, 840.0, 844.099976, 848.199951, 852.299988, 856.400024, 860.5, 864.599976, 868.699951, 872.799988, 876.900024, 881.0, 885.099976, 889.199951, 893.299988, 897.400024, 901.5, 905.599976, 909.699951, 913.799988, 917.900024, 922.0, 926.099976, 930.200012, 934.299988, 938.399963, 942.5, 946.599976, 950.700012, 954.799988, 958.899963, 963.0, 967.099976, 971.200012, 975.299988, 979.399963, 983.5, 987.599976, 991.700012, 995.799988, 999.899963, 1004.0, 1008.09998, 1012.20001, 1016.29999, 1020.39996, 1024.5, 1028.59998, 1032.69995, 1036.80005, 1040.8999, 1045.0, 1049.09998, 1053.19995, 1057.30005, 1061.3999, 1065.5, 1069.59998, 1073.69995, 1077.80005, 1081.8999, 1086.0, 1090.09998, 1094.19995, 1098.30005, 1102.3999, 1106.5, 1110.59998, 1114.69995, 1118.80005, 1122.8999, 1127.0, 1131.09998, 1135.19995, 1139.30005, 1143.3999, 1147.5, 1151.59998, 1155.69995, 1159.80005, 1163.8999, 1168.0, 1172.09998, 1176.19995, 1180.30005, 1184.3999, 1188.5, 1192.59998, 1196.69995, 1200.80005, 1204.8999, 1209.0, 1213.09998, 1217.19995, 1221.30005, 1225.3999, 1229.5, 1233.59998, 1237.69995, 1241.80005, 1245.8999, 1250.0, 1254.09998, 1258.19995, 1262.30005, 1266.3999, 1270.5, 1274.59998, 1278.69995, 1282.80005, 1286.8999, 1291.0, 1295.09998, 1299.19995, 1303.30005, 1307.3999, 1311.5, 1315.59998, 1319.69995, 1323.80005, 1327.8999, 1332.0, 1336.09998, 1340.19995, 1344.29993, 1348.40002, 1352.5, 1356.59998, 1360.69995, 1364.79993, 1368.90002, 1373.0, 1377.09998, 1381.19995, 1385.29993, 1389.40002, 1393.5, 1397.59998, 1401.69995, 1405.79993, 1409.90002, 1414.0, 1418.09998, 1422.19995, 1426.29993, 1430.40002, 1434.5, 1438.59998, 1442.69995, 1446.79993, 1450.90002, 1455.0, 1459.09998, 1463.19995, 1467.29993, 1471.40002, 1475.5, 1479.59998, 1483.69995, 1487.79993, 1491.90002, 1496.0, 1500.09998, 1504.19995, 1508.29993, 1512.40002, 1516.5, 1520.59998, 1524.69995, 1528.79993, 1532.90002, 1537.0, 1541.09998, 1545.19995, 1549.29993, 1553.40002, 1557.5, 1561.59998, 1565.69995, 1569.79993, 1573.90002, 1578.0, 1582.09998, 1586.19995, 1590.29993, 1594.40002, 1598.5, 1602.59998, 1606.69995, 1610.79993, 1614.90002, 1619.0, 1623.09998, 1627.19995, 1631.29993, 1635.40002, 1639.5, 1643.59998, 1647.69995, 1651.79993, 1655.90002, 1660.0, 1664.09998, 1668.19995, 1672.29993, 1676.40002, 1680.5, 1684.59998, 1688.69995, 1692.79993, 1696.90002, 1701.0, 1705.09998, 1709.19995, 1713.29993, 1717.40002, 1721.5, 1725.59998, 1729.69995, 1733.79993, 1737.90002, 1742.0, 1746.09998, 1750.19995, 1754.29993, 1758.40002, 1762.5, 1766.59998, 1770.69995, 1774.79993, 1778.90002, 1783.0, 1787.09998, 1791.19995, 1795.29993, 1799.40002, 1803.5, 1807.59998, 1811.69995, 1815.79993, 1819.90002, 1824.0, 1828.09998, 1832.19995, 1836.29993, 1840.40002, 1844.5, 1848.59998, 1852.69995, 1856.79993, 1860.90002, 1865.0, 1869.09998, 1873.19995, 1877.29993, 1881.40002, 1885.5, 1889.59998, 1893.69995, 1897.79993, 1901.90002, 1906.0, 1910.09998, 1914.19995, 1918.29993, 1922.40002, 1926.5, 1930.59998, 1934.69995, 1938.79993, 1942.90002, 1947.0, 1951.09998, 1955.19995, 1959.29993, 1963.40002, 1967.5, 1971.59998, 1975.69995, 1979.79993, 1983.90002, 1988.0, 1992.09998, 1996.19995, 2000.29993, 2004.40002, 2008.5, 2012.59998, 2016.69995, 2020.79993, 2024.90002, 2029.0, 2033.09998, 2037.19995, 2041.29993, 2045.40002, 2049.5, 2053.6001, 2057.69995, 2061.7998, 2065.8999, 2070.0, 2074.1001, 2078.19995, 2082.2998, 2086.3999, 2090.5, 2094.6001, 2098.69995, 2102.7998, 2106.8999, 2111.0, 2115.1001, 2119.19995, 2123.2998, 2127.3999, 2131.5, 2135.6001, 2139.69995, 2143.7998, 2147.8999, 2152.0, 2156.1001, 2160.19995, 2164.30005, 2168.3999, 2172.5, 2176.59985, 2180.69995, 2184.80005, 2188.8999, 2193.0, 2197.09985, 2201.19995, 2205.30005, 2209.3999, 2213.5, 2217.59985, 2221.69995, 2225.80005, 2229.8999, 2234.0, 2238.09985, 2242.19995, 2246.30005, 2250.3999, 2254.5, 2258.59985, 2262.69995, 2266.80005, 2270.8999, 2275.0, 2279.09985, 2283.19995, 2287.30005, 2291.3999, 2295.5, 2299.59985, 2303.69995, 2307.80005, 2311.8999, 2316.0, 2320.09985, 2324.19995, 2328.30005, 2332.3999, 2336.5, 2340.59985, 2344.69995, 2348.80005, 2352.8999, 2357.0, 2361.09985, 2365.19995, 2369.30005, 2373.3999, 2377.5, 2381.59985, 2385.69995, 2389.80005, 2393.8999, 2398.0, 2402.09985, 2406.19995, 2410.30005, 2414.3999, 2418.5, 2422.59985, 2426.69995, 2430.80005, 2434.8999, 2439.0, 2443.09985, 2447.19995, 2451.30005, 2455.3999, 2459.5, 2463.59985, 2467.69995, 2471.80005, 2475.8999, 2480.0, 2484.09985, 2488.19995, 2492.30005, 2496.3999, 2500.5, 2504.59985, 2508.69995, 2512.80005, 2516.8999, 2521.0, 2525.09985, 2529.19995, 2533.30005, 2537.3999, 2541.5, 2545.59985, 2549.69995, 2553.80005, 2557.8999, 2562.0, 2566.09985, 2570.19995, 2574.30005, 2578.3999, 2582.5, 2586.59985, 2590.69995, 2594.80005, 2598.8999, 2603.0, 2607.09985])
        }
