Start testing: Feb 25 05:24 CST ---------------------------------------------------------- 1/63 Testing: bin-c-base 1/63 Test: bin-c-base Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/base" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-base" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 14.48 sec ---------------------------------------------------------- Test Passed. "bin-c-base" end time: Feb 25 05:24 CST "bin-c-base" time elapsed: 00:00:14 ---------------------------------------------------------- 2/63 Testing: bin-c-device 2/63 Test: bin-c-device Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/device" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-device" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- { "mode": "Serial", "props": { "dkey": 1, "kernel": { "kkey": 2, "mode": "Serial" }, "memory": { "mkey": 3, "mode": "Serial" }, "mode": "Serial", "stream": { "mode": "Serial" } }, "type": "device", "value": true } { "dtype": { "name": "byte", "type": "builtin" }, "length": 40L, "mode": "Serial", "props": { "mkey": 3, "mode": "Serial" }, "size": 40L, "type": "memory", "value": true } { "mode": "Serial", "name": "addVectors", "props": { "hash": "b70d49793a705a4d8863e6a5be183b0d6c8429b557cd41c5a358159556a3b929", "kkey": 2, "mode": "Serial" }, "type": "kernel", "value": true } { "mode": "Serial", "type": "stream", "value": true } Test time = 0.53 sec ---------------------------------------------------------- Test Passed. "bin-c-device" end time: Feb 25 05:24 CST "bin-c-device" time elapsed: 00:00:00 ---------------------------------------------------------- 3/63 Testing: bin-c-dtype 3/63 Test: bin-c-dtype Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/dtype" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-dtype" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-c-dtype" end time: Feb 25 05:24 CST "bin-c-dtype" time elapsed: 00:00:00 ---------------------------------------------------------- 4/63 Testing: bin-c-json 4/63 Test: bin-c-json Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/json" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-json" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- left : [0] right: [1864401510] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/c/json.cpp Line : 164 Function : testTypes Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 json testTypes() 2 json main 1 json start ================================================================================ Test time = 0.10 sec ---------------------------------------------------------- Test Failed. "bin-c-json" end time: Feb 25 05:24 CST "bin-c-json" time elapsed: 00:00:00 ---------------------------------------------------------- 5/63 Testing: bin-c-kernel 5/63 Test: bin-c-kernel Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/kernel" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-kernel" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- nullPtr: 0x0 mem: 1 i8: 3 u8: 4 i16: 5 u16: 6 i32: 7 u32: 8 i64: 0 u64: 0 f: 11.000000 d: 12.000000 xy: [13, 14] str: fifteen nullPtr: 0x0 mem: 1 i8: 3 u8: 4 i16: 5 u16: 6 i32: 7 u32: 8 i64: 0 u64: 0 f: 11.000000 d: 12.000000 xy: [13, 14] str: fifteen nullPtr: 0x0 mem: 1 i8: 3 u8: 4 i16: 5 u16: 6 i32: 7 u32: 8 i64: 0 u64: 0 f: 11.000000 d: 12.000000 xy: [13, 14] str: fifteen Test time = 6.47 sec ---------------------------------------------------------- Test Passed. "bin-c-kernel" end time: Feb 25 05:24 CST "bin-c-kernel" time elapsed: 00:00:06 ---------------------------------------------------------- 6/63 Testing: bin-c-memory 6/63 Test: bin-c-memory Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/memory" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-memory" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-c-memory" end time: Feb 25 05:24 CST "bin-c-memory" time elapsed: 00:00:00 ---------------------------------------------------------- 7/63 Testing: bin-c-memoryPool 7/63 Test: bin-c-memoryPool Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/memoryPool" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-memoryPool" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-c-memoryPool" end time: Feb 25 05:24 CST "bin-c-memoryPool" time elapsed: 00:00:00 ---------------------------------------------------------- 8/63 Testing: bin-c-types 8/63 Test: bin-c-types Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/c/types" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-c-types" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- { "type": "json", "value": { "a": 1, "b": 2 } } { "type": "ptr", "value": false } { "type": "bool", "value": true } { "type": "int8", "value": 1 } { "type": "uint8", "value": 1 } { "type": "int16", "value": 1 } { "type": "uint16", "value": 1 } { "type": "int32", "value": 1 } { "type": "uint32", "value": 1 } { "type": "int64", "value": 1L } { "type": "uint64", "value": 1L } { "type": "int8", "value": 1 } { "type": "uint8", "value": 1 } { "type": "int16", "value": 1 } { "type": "uint16", "value": 1 } { "type": "int32", "value": 1 } { "type": "uint32", "value": 1 } { "type": "int32", "value": 1 } { "type": "uint32", "value": 1 } { "type": "float", "value": 1.00000000e+00f } { "type": "double", "value": 1.0000000000000000e+00 } { "bytes": 0L, "type": "struct", "value": false } { "type": "string", "value": "123" } Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-c-types" end time: Feb 25 05:24 CST "bin-c-types" time elapsed: 00:00:00 ---------------------------------------------------------- 9/63 Testing: bin-core-device 9/63 Test: bin-core-device Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/device" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-device" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-core-device" end time: Feb 25 05:24 CST "bin-core-device" time elapsed: 00:00:00 ---------------------------------------------------------- 10/63 Testing: bin-core-kernel 10/63 Test: bin-core-kernel Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/kernel" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-kernel" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/occa/cache/e58d8599e39228d3/raw_source.cpp:2:14: Error: [2] Expected a [;] @kernel foo {} ^ /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/occa/cache/e58d8599e39228d3/raw_source.cpp:2:14: Error: [2] Expected a [;] @kernel foo {} ^ /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/occa/cache/e8f458ee7a202044/raw_source.cpp:2:25: Error: [@kernel] requires at least one [@outer] for-loop @kernel void foo(int i) {} ^ /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/occa/cache/e8f458ee7a202044/raw_source.cpp:2:25: Error: [@kernel] requires at least one [@outer] for-loop @kernel void foo(int i) {} ^ nullPtr: 0x0 mem: 1 i8: 3 u8: 4 i16: 5 u16: 6 i32: 7 u32: 8 i64: 0 u64: 0 f: 11.000000 d: 12.000000 xy: [13, 14] str: fifteen Test time = 11.93 sec ---------------------------------------------------------- Test Passed. "bin-core-kernel" end time: Feb 25 05:24 CST "bin-core-kernel" time elapsed: 00:00:11 ---------------------------------------------------------- 11/63 Testing: bin-core-memory 11/63 Test: bin-core-memory Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/memory" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-memory" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.07 sec ---------------------------------------------------------- Test Passed. "bin-core-memory" end time: Feb 25 05:24 CST "bin-core-memory" time elapsed: 00:00:00 ---------------------------------------------------------- 12/63 Testing: bin-core-memoryPool 12/63 Test: bin-core-memoryPool Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/memoryPool" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-memoryPool" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-core-memoryPool" end time: Feb 25 05:24 CST "bin-core-memoryPool" time elapsed: 00:00:00 ---------------------------------------------------------- 13/63 Testing: bin-core-stream 13/63 Test: bin-core-stream Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/stream" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-stream" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.07 sec ---------------------------------------------------------- Test Passed. "bin-core-stream" end time: Feb 25 05:24 CST "bin-core-stream" time elapsed: 00:00:00 ---------------------------------------------------------- 14/63 Testing: bin-core-streamTag 14/63 Test: bin-core-streamTag Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/core/streamTag" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-core-streamTag" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.07 sec ---------------------------------------------------------- Test Passed. "bin-core-streamTag" end time: Feb 25 05:24 CST "bin-core-streamTag" time elapsed: 00:00:00 ---------------------------------------------------------- 15/63 Testing: src-dtype 15/63 Test: src-dtype Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/src/dtype" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "src-dtype" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "src-dtype" end time: Feb 25 05:24 CST "src-dtype" time elapsed: 00:00:00 ---------------------------------------------------------- 16/63 Testing: bin-functional-array 16/63 Test: bin-functional-array Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/functional/array" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-functional-array" start time: Feb 25 05:24 CST Output: ---------------------------------------------------------- [CUDA] mode is not enabled, defaulting to [Serial] mode [HIP] mode is not enabled, defaulting to [Serial] mode Testing mode: Serial Testing mode: OpenMP Testing mode: Serial Testing mode: Serial Test time = 678.63 sec ---------------------------------------------------------- Test Passed. "bin-functional-array" end time: Feb 25 05:36 CST "bin-functional-array" time elapsed: 00:11:18 ---------------------------------------------------------- 17/63 Testing: bin-functional-range 17/63 Test: bin-functional-range Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/functional/range" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-functional-range" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/functional/range.cpp Line : 104 Function : testEvery Message : Assertion Failed: Value not true Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 range testEvery() 2 range main 1 range start ================================================================================ Test time = 12.38 sec ---------------------------------------------------------- Test Failed. "bin-functional-range" end time: Feb 25 05:36 CST "bin-functional-range" time elapsed: 00:00:12 ---------------------------------------------------------- 18/63 Testing: bin-internal-bin-occa 18/63 Test: bin-internal-bin-occa Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/bin/occa" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-bin-occa" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-internal-bin-occa" end time: Feb 25 05:36 CST "bin-internal-bin-occa" time elapsed: 00:00:00 ---------------------------------------------------------- 19/63 Testing: bin-internal-io-cache 19/63 Test: bin-internal-io-cache Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/io/cache" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-io-cache" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-internal-io-cache" end time: Feb 25 05:36 CST "bin-internal-io-cache" time elapsed: 00:00:00 ---------------------------------------------------------- 20/63 Testing: bin-internal-io-utils 20/63 Test: bin-internal-io-utils Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/io/utils" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-io-utils" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- left : [start208351553877729918492436078783504471179082463261329874119379180341851407036170749266910053130222042109805655846281192236836335360782699948033364886989763439941394626936125701457218472760659977397761460099456595922723195695950019062626952485852721116973089181214839611650098181711601427134173202419118338681541493062631175626174701364916619769595269533842829646601258246162107177272519135803913715419144154817001531595503178662597917064766991109774408108300106120749239022590772811362509298107564352582338422923411553558975544113826659825466152872808674317549709081081592111060693915820875658102223567884586414696958682179196394812274085083268808746236802923269866372537553862111733207437776080423601938569482161209954889518144744081603587856581325942144199699112904713421514493941212348214333364790854058743917972604635162293943342385458508362978714698168067691312844678001544694956758316909186432826519787401257535234337572720721483621982802026157982802026157] right: [start208351553877729918492436078783504471179082463261329874119379180341851407036170749266910053130222042109805655846281192236836335360782699948033364886989763439941394626936125701457218472760659977397761460099456595922723195695950019062626952485852721116973089181214839611650098181711601427134173202419118338681541493062631175626174701364916619769595269533842829646601258246162107177272519135803913715419144154817001531595503178662597917064766991109774408108300106120749239022590772811362509298107564352582338422923411553558975544113826659825466152872808674317549709081081592111060693915820875658102223567884586414696958682179196394812274085083268808746236802923269866372537553862111733207437776080423601938569482161209954889518144744081603587856581325942144199699112904713421514493941212348214333364790854058743917972604635162293943342385458508362978714698168067691312844678001544694956758316909186432826519787401257535234337572720721483621982802026157] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/internal/io/utils.cpp Line : 166 Function : testIOMethods Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 utils testIOMethods() 2 utils main 1 utils start ================================================================================ Test time = 0.07 sec ---------------------------------------------------------- Test Failed. "bin-internal-io-utils" end time: Feb 25 05:36 CST "bin-internal-io-utils" time elapsed: 00:00:00 ---------------------------------------------------------- 21/63 Testing: bin-internal-lang-expr 21/63 Test: bin-internal-lang-expr Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/expr" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-expr" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Testing << Printing ]------------------------ not_ : !1 positive : +1 negative : -1 tilde : ~1 leftIncrement : ++1 leftDecrement : --1 rightIncrement : 1++ rightDecrement : 1-- add : 1 + 2.0000000000000000e+00 sub : 1 - 2.0000000000000000e+00 mult : 1 * 2.0000003590303308e+00 div : 1 / 2.0000000000000000e+00 mod : 1 % 2.0000003590303308e+00 lessThan : 1 < 2.0000000000000018e+00 lessThanEq : 1 <= 2.0000000000000018e+00 equal : 1 == 2.0000000000000022e+00 compare : 1 <=> 2.0000000000000022e+00 notEqual : 1 != 2.0000000000000027e+00 greaterThan : 1 > 2.0000000000000022e+00 greaterThanEq : 1 >= 2.0000000000000018e+00 and_ : 1 && 2.0000000000000022e+00 or_ : 1 || 2.0000000000000022e+00 bitAnd : 1 & 2.0000000000000022e+00 bitOr : 1 | 2.0000000000000018e+00 xor_ : 1 ^ 2.0000000000000018e+00 leftShift : 1 << 2.0000000000000018e+00 rightShift : 1 >> 2.0000000000000022e+00 addEq : 1 += 2.0000000000000022e+00 subEq : 1 -= 2.0000000000000022e+00 multEq : 1 *= 2.0000000000000022e+00 divEq : 1 /= 2.0000000000000022e+00 modEq : 1 %= 2.0000000000000022e+00 andEq : 1 &= 2.0000000000000022e+00 orEq : 1 |= 2.0000000000000022e+00 xorEq : 1 ^= 2.0000000000000022e+00 leftShiftEq : 1 <<= 2.0000000000000022e+00 rightShiftEq : 1 >>= 2.0000000000000027e+00 add : 1 + 2.0000000000000027e+00 sub : 1 - 2.0000000000000018e+00 mult : 1 * 2.0000000000000018e+00 div : 1 / 2.0000000000000018e+00 mod : 1 % 2.0000000000000018e+00 lessThan : 1 < 2.0000000000000018e+00 lessThanEq : 1 <= 2.0000000000000018e+00 equal : 1 == 2.0000000000000022e+00 compare : 1 <=> 2.0000000000000022e+00 notEqual : 1 != 2.0000000000000027e+00 greaterThan : 1 > 2.0000000000000022e+00 greaterThanEq : 1 >= 2.0000000000000018e+00 and_ : 1 && 2.0000000000000022e+00 or_ : 1 || 2.0000000000000022e+00 bitAnd : 1 & 2.0000000000000022e+00 bitOr : 1 | 2.0000000000000018e+00 xor_ : 1 ^ 2.0000000000000018e+00 leftShift : 1 << 2.0000000000000018e+00 rightShift : 1 >> 2.0000000000000022e+00 addEq : 1 += 2.0000000000000022e+00 subEq : 1 -= 2.0000000000000022e+00 multEq : 1 *= 2.0000000000000022e+00 divEq : 1 /= 2.0000000000000022e+00 modEq : 1 %= 2.0000000000000022e+00 andEq : 1 &= 2.0000000000000022e+00 orEq : 1 |= 2.0000000000000022e+00 xorEq : 1 ^= 2.0000000000000022e+00 leftShiftEq : 1 <<= 2.0000000000000022e+00 rightShiftEq : 1 >>= 2.0000000000000027e+00 ternary : 1 ? 2.0000000000000027e+00 : false one : 1 var : var subscript : var[1] callNode : var(1, 2, 3) newNode : new const float **var[3] newNode : new const float **var deleteNode : delete var deleteNode : delete [] var throwNode : throw 1 sizeofNode : sizeof(var) funcCastNode : const float **(var) parenCastNode : (const float **) var constCastNode : const_cast(var) staticCastNode : static_cast(var) reinterpretCastNode : reinterpret_cast(var) dynamicCastNode : dynamic_cast(var) parenthesesNode : (var) cudaCallNode : var<<<1, 2>>> dpcppAtomicNode : sycl::atomic_ref(var) dpcppLocalMemoryNode: *(sycl::ext::oneapi::group_local_memory_for_overwrite(cgh.get_group())) lambdaNode : [&]() { } ---[ Testing pout Printing ]---------------------- !1 +1 -1 ~1 ++1 --1 1++ 1-- 1 + 2.0000000000000004e+00 1 - 2.0000000000000004e+00 1 * 2.0000000000000004e+00 1 / 2.0000000000000004e+00 1 % 2.0000000000000004e+00 1 < 2.0000000000000004e+00 1 <= 2.0000000000000004e+00 1 == 2.0000000000000004e+00 1 <=> 2.0000000000000004e+00 1 != 2.0000000000000004e+00 1 > 2.0000000000000004e+00 1 >= 2.0000000000000004e+00 1 && 2.0000000000000004e+00 1 || 2.0000000000000004e+00 1 & 2.0000000000000004e+00 1 | 2.0000000000000004e+00 1 ^ 2.0000000000000004e+00 1 << 2.0000000000000004e+00 1 >> 2.0000000000000004e+00 1 += 2.0000000000000004e+00 1 -= 2.0000000000000004e+00 1 *= 2.0000000000000004e+00 1 /= 2.0000000000000004e+00 1 %= 2.0000000000000004e+00 1 &= 2.0000000000000004e+00 1 |= 2.0000000000000004e+00 1 ^= 2.0000000000000004e+00 1 <<= 2.0000000000000004e+00 1 >>= 2.0000000000000004e+00 1 + 2.0000000000000004e+00 1 - 2.0000000000000004e+00 1 * 2.0000000000000004e+00 1 / 2.0000000000000004e+00 1 % 2.0000000000000004e+00 1 < 2.0000000000000004e+00 1 <= 2.0000000000000004e+00 1 == 2.0000000000000004e+00 1 <=> 2.0000000000000004e+00 1 != 2.0000000000000004e+00 1 > 2.0000000000000004e+00 1 >= 2.0000000000000004e+00 1 && 2.0000000000000004e+00 1 || 2.0000000000000004e+00 1 & 2.0000000000000004e+00 1 | 2.0000000000000004e+00 1 ^ 2.0000000000000004e+00 1 << 2.0000000000000004e+00 1 >> 2.0000000000000004e+00 1 += 2.0000000000000004e+00 1 -= 2.0000000000000004e+00 1 *= 2.0000000000000004e+00 1 /= 2.0000000000000004e+00 1 %= 2.0000000000000004e+00 1 &= 2.0000000000000004e+00 1 |= 2.0000000000000004e+00 1 ^= 2.0000000000000004e+00 1 <<= 2.0000000000000004e+00 1 >>= 2.0000000000000004e+00 1 ? 2.0000000000000004e+00 : false 1 var var[1] var(1, 2, 3) new const float **var[3] new const float **var delete var delete [] var throw 1 sizeof(var) const float **(var) (const float **) var const_cast(var) static_cast(var) reinterpret_cast(var) dynamic_cast(var) (var) var<<<1, 2>>> sycl::atomic_ref(var) *(sycl::ext::oneapi::group_local_memory_for_overwrite(cgh.get_group())) [&]() { } ---[ Testing Debug Printing ]--------------------- | |---[!] (leftUnary) | | | |---[1] (primitive) | |---[+] (leftUnary) | | | |---[1] (primitive) | |---[-] (leftUnary) | | | |---[1] (primitive) | |---[~] (leftUnary) | | | |---[1] (primitive) | |---[++] (leftUnary) | | | |---[1] (primitive) | |---[--] (leftUnary) | | | |---[1] (primitive) | |---[++] (rightUnary) | | | |---[1] (primitive) | |---[--] (rightUnary) | | | |---[1] (primitive) | |---[+] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[-] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[*] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[/] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[%] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[<] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[<=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[==] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[<=>] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[!=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[>] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[>=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[&&] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[||] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[&] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[|] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[^] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[<<] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[>>] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[+=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[-=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[*=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[/=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[%=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[&=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[|=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[^=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[<<=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[>>=] (binary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | |---[?:] (ternary) | | | |---[1] (primitive) | | | |---[2.0000000000000044e+00] (primitive) | | | |---[false] (primitive) | |---[1] (primitive) | |---[var] (variable) | |---[1] (subscript) | | | |---[var] (variable) | |---[var] (call) | | | |---[1] (primitive) | | | |---[2] (primitive) | | | |---[3] (primitive) | |---[const float **] (new) | | | |---[var] (variable) | | | |---[3] (primitive) | |---[const float **] (new) | | | |---[var] (variable) | | | |---o | |---[var] (delete) |---[var] (delete []) | | |---[1] (throw) |---[var] (sizeof) | |---[const float **] (funcCast) | | | |---[var] (variable) | |---[const float **] (parenCast) | | | |---[var] (variable) | |---[const float **] (constCast) | | | |---[var] (variable) | |---[const float **] (staticCast) | | | |---[var] (variable) | |---[const float **] (reinterpretCast) | | | |---[var] (variable) | |---[const float **] (dynamicCast) | | | |---[var] (variable) | |---[()] (parentheses) | | | |---[var] (variable) | |---[<<<...>>>] (cudaCall) | | | |---[var] (variable) | | | |---[1] (primitive) | | | |---[2] (primitive) | |---[sycl::atomic_ref(var)] (dpcppAtomic) | |---[*(sycl::ext::oneapi::group_local_memory_for_overwrite(cgh.get_group()))] (dpcppLocalMemory) | |---[[&]() { } ] (lambda) | |---[=] (binary) | | |---[a] (identifier) | | | |---[?:] (ternary) | | | | | |---[true] (primitive) | | | | | |---[1] (primitive) | | | | | |---[2] (primitive) | |---[=] (binary) | | |---[a] (identifier) | | | |---[?:] (ternary) | | | | | |---[true] (primitive) | | | | | |---[()] (parentheses) | | | | | | | |---[?:] (ternary) | | | | | | | | | |---[false] (primitive) | | | | | | | | | |---[1] (primitive) | | | | | | | | | |---[()] (parentheses) | | | | | | | | | | | |---[?:] (ternary) | | | | | | | | | | | | | |---[false] (primitive) | | | | | | | | | | | | | |---[2] (primitive) | | | | | | | | | | | | | |---[3] (primitive) | | | | | |---[4] (primitive) Testing pair errors: (source):1:1: Error: Could not find a closing ')' (0,1,2] ^ (source):1:1: Error: Could not find a closing ']' [0,1,2} ^ (source):1:1: Error: Could not find a closing '}' {0,1,2) ^ (source):1:1: Error: Could not find a closing '>>>' <<<0,1,2) ^ Testing unsupported new and delete: (source):1:1: Error: 'new' not supported yet new int[2] ^ (source):1:1: Error: 'delete' not supported yet delete foo ^ ---[ Scopes ]--------------------------- Outputs: Operators: [delete] ======================================== (source):1:9: Error: Expected identifier or proper expression before delete [] foo ^ left : [3.19892] right: [3.19893] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/internal/lang/expr.cpp Line : 542 Function : testEval Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 expr testEval() 2 expr main 1 expr start ================================================================================ Test time = 0.16 sec ---------------------------------------------------------- Test Failed. "bin-internal-lang-expr" end time: Feb 25 05:36 CST "bin-internal-lang-expr" time elapsed: 00:00:00 ---------------------------------------------------------- 22/63 Testing: bin-internal-lang-file 22/63 Test: bin-internal-lang-file Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/file" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-file" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- (source):10:9: Included file: (source):20:13: Expanded from macro 'bar': (source):30:9: Test message (source):10:9: Included file: (source):20:13: Expanded from macro 'bar': (source):40:13: Test message 2 Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-file" end time: Feb 25 05:36 CST "bin-internal-lang-file" time elapsed: 00:00:00 ---------------------------------------------------------- 23/63 Testing: bin-internal-lang-keyword 23/63 Test: bin-internal-lang-keyword Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/keyword" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-keyword" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-keyword" end time: Feb 25 05:36 CST "bin-internal-lang-keyword" time elapsed: 00:00:00 ---------------------------------------------------------- 24/63 Testing: bin-internal-lang-modes-cuda 24/63 Test: bin-internal-lang-modes-cuda Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/cuda" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-cuda" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; const int var[10]; void foo() {} int bar(int i) {} extern "C" void kernel(occa::modeKernel_t ** deviceKernels, occa::modeMemory_t * arg, const int & bar) { { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[1]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[2]); kernel.setRunDims(outer, inner); kernel(arg, bar); } } ============================================== ---[ Device ]--------------------------------- __constant__ int var[10]; __device__ void foo() {} __device__ int bar(int i) {} extern "C" __global__ void _occa_kernel_0(int * __restrict__ arg, const int bar) { { int o1 = 0 + blockIdx.y; { int o0 = 0 + blockIdx.x; __shared__ int shr[3]; int excl; if (true) { { int i1 = 10 + (3 * threadIdx.y); { int i0 = 0 + threadIdx.x; for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } extern "C" __global__ void _occa_kernel_1(int * __restrict__ arg, const int bar) { { int o1 = 0 + blockIdx.x; { int o0 = 0 + blockIdx.y; __shared__ int shr[3]; int excl; if (true) { { int i1 = 10 + (3 * threadIdx.y); { int i0 = 0 + threadIdx.x; for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } extern "C" __global__ __launch_bounds__(16) void _occa_kernel_2(int * __restrict__ arg, const int bar) { { int ib = 0 + (16 * blockIdx.x); { int it = 0 + threadIdx.x; const int i = ib + it; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int _occa_tiled_i = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int i = _occa_tiled_i; inner[0] = (_occa_tiled_i + 16) - _occa_tiled_i; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- extern "C" __global__ __launch_bounds__(16) void _occa_addVectors_0(const int entries, const float * a, const float * b, float * ab) { { int _occa_tiled_i = 0 + (16 * blockIdx.x); { int i = _occa_tiled_i + threadIdx.x; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- extern "C" __global__ __launch_bounds__(16) void _occa_addVectors_0(const int entries, const float * a, const float * b, float * ab) { { int ib = 0 + (16 * blockIdx.x); __shared__ int foo[10]; { int it = 0 + threadIdx.x; const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } __syncthreads(); { int it = 0 + threadIdx.x; const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } } } ============================================== Test time = 0.27 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-cuda" end time: Feb 25 05:36 CST "bin-internal-lang-modes-cuda" time elapsed: 00:00:00 ---------------------------------------------------------- 25/63 Testing: bin-internal-lang-modes-dpcpp 25/63 Test: bin-internal-lang-modes-dpcpp Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/dpcpp" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-dpcpp" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; const int var[10]; void foo() {} int bar(int i) {} extern "C" void kernel(occa::modeKernel_t ** deviceKernels, occa::modeMemory_t * arg, const int & bar) { { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[1]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[2]); kernel.setRunDims(outer, inner); kernel(arg, bar); } } ============================================== ---[ Device ]--------------------------------- #include using namespace sycl; const int var[10]; SYCL_EXTERNAL void foo() {} SYCL_EXTERNAL int bar(int i) {} extern "C" void _occa_kernel_0(sycl::queue * queue_, sycl::nd_range<3> * range_, int * __restrict__ arg, const int & bar) { queue_->submit( [&](sycl::handler & handler_) { handler_.parallel_for( *range_, [=](sycl::nd_item<3> item_) { auto & shr = *(sycl::ext::oneapi::group_local_memory_for_overwrite(item_.get_group())); { int o1 = 0 + item_.get_group(1); { int o0 = 0 + item_.get_group(2); int excl; if (true) { { int i1 = 10 + (3 * item_.get_local_id(1)); { int i0 = 0 + item_.get_local_id(2); for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } ); } ); } extern "C" void _occa_kernel_1(sycl::queue * queue_, sycl::nd_range<3> * range_, int * __restrict__ arg, const int & bar) { queue_->submit( [&](sycl::handler & handler_) { handler_.parallel_for( *range_, [=](sycl::nd_item<3> item_) { auto & shr = *(sycl::ext::oneapi::group_local_memory_for_overwrite(item_.get_group())); { int o1 = 0 + item_.get_group(2); { int o0 = 0 + item_.get_group(1); int excl; if (true) { { int i1 = 10 + (3 * item_.get_local_id(1)); { int i0 = 0 + item_.get_local_id(2); for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } ); } ); } extern "C" [[sycl::reqd_work_group_size(1,1,16)]] void _occa_kernel_2(sycl::queue * queue_, sycl::nd_range<3> * range_, int * __restrict__ arg, const int & bar) { queue_->submit( [&](sycl::handler & handler_) { handler_.parallel_for( *range_, [=](sycl::nd_item<3> item_) { { int ib = 0 + (16 * item_.get_group(2)); { int it = 0 + item_.get_local_id(2); const int i = ib + it; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ); } ); } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int _occa_tiled_i = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int i = _occa_tiled_i; inner[0] = (_occa_tiled_i + 16) - _occa_tiled_i; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #include using namespace sycl; extern "C" [[sycl::reqd_work_group_size(1,1,16)]] void _occa_addVectors_0(sycl::queue * queue_, sycl::nd_range<3> * range_, const int & entries, const float * a, const float * b, float * ab) { queue_->submit( [&](sycl::handler & handler_) { handler_.parallel_for( *range_, [=](sycl::nd_item<3> item_) { { int _occa_tiled_i = 0 + (16 * item_.get_group(2)); { int i = _occa_tiled_i + item_.get_local_id(2); if (i < entries) { ab[i] = a[i] + b[i]; } } } } ); } ); } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #include using namespace sycl; extern "C" [[sycl::reqd_work_group_size(1,1,16)]] void _occa_addVectors_0(sycl::queue * queue_, sycl::nd_range<3> * range_, const int & entries, const float * a, const float * b, float * ab) { queue_->submit( [&](sycl::handler & handler_) { handler_.parallel_for( *range_, [=](sycl::nd_item<3> item_) { auto & foo = *(sycl::ext::oneapi::group_local_memory_for_overwrite(item_.get_group())); { int ib = 0 + (16 * item_.get_group(2)); { int it = 0 + item_.get_local_id(2); const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } item_.barrier(sycl::access::fence_space::local_space); { int it = 0 + item_.get_local_id(2); const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } } } ); } ); } ============================================== Test time = 0.27 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-dpcpp" end time: Feb 25 05:36 CST "bin-internal-lang-modes-dpcpp" time elapsed: 00:00:00 ---------------------------------------------------------- 26/63 Testing: bin-internal-lang-modes-metal 26/63 Test: bin-internal-lang-modes-metal Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/metal" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-metal" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; const int var[10]; void foo() {} int baz(int i) {} extern "C" void kernel(occa::modeKernel_t ** deviceKernels, occa::modeMemory_t * arg, const int & bar) { { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[1]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[2]); kernel.setRunDims(outer, inner); kernel(arg, bar); } } ============================================== ---[ Device ]--------------------------------- #include #include using namespace metal; const int var[10]; void foo() {} int baz(int i) {} kernel void _occa_kernel_0(device int * __restrict__ arg [[buffer(0)]], constant int & bar [[buffer(1)]], uint3 _occa_group_position [[threadgroup_position_in_grid]], uint3 _occa_thread_position [[thread_position_in_threadgroup]]) { threadgroup int shr[3]; { int o1 = 0 + _occa_group_position.y; { int o0 = 0 + _occa_group_position.x; int excl; if (true) { { int i1 = 10 + (3 * _occa_thread_position.y); { int i0 = 0 + _occa_thread_position.x; for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } kernel void _occa_kernel_1(device int * __restrict__ arg [[buffer(0)]], constant int & bar [[buffer(1)]], uint3 _occa_group_position [[threadgroup_position_in_grid]], uint3 _occa_thread_position [[thread_position_in_threadgroup]]) { threadgroup int shr[3]; { int o1 = 0 + _occa_group_position.x; { int o0 = 0 + _occa_group_position.y; int excl; if (true) { { int i1 = 10 + (3 * _occa_thread_position.y); { int i0 = 0 + _occa_thread_position.x; for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } kernel void _occa_kernel_2(device int * __restrict__ arg [[buffer(0)]], constant int & bar [[buffer(1)]], uint3 _occa_group_position [[threadgroup_position_in_grid]], uint3 _occa_thread_position [[thread_position_in_threadgroup]]) { { int ib = 0 + (16 * _occa_group_position.x); { int it = 0 + _occa_thread_position.x; const int i = ib + it; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int _occa_tiled_i = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int i = _occa_tiled_i; inner[0] = (_occa_tiled_i + 16) - _occa_tiled_i; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #include #include using namespace metal; kernel void _occa_addVectors_0(constant int & entries [[buffer(0)]], device const float * a [[buffer(1)]], device const float * b [[buffer(2)]], device float * ab [[buffer(3)]], uint3 _occa_group_position [[threadgroup_position_in_grid]], uint3 _occa_thread_position [[thread_position_in_threadgroup]]) { { int _occa_tiled_i = 0 + (16 * _occa_group_position.x); { int i = _occa_tiled_i + _occa_thread_position.x; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #include #include using namespace metal; kernel void _occa_addVectors_0(constant int & entries [[buffer(0)]], device const float * a [[buffer(1)]], device const float * b [[buffer(2)]], device float * ab [[buffer(3)]], uint3 _occa_group_position [[threadgroup_position_in_grid]], uint3 _occa_thread_position [[thread_position_in_threadgroup]]) { threadgroup int foo[10]; { int ib = 0 + (16 * _occa_group_position.x); { int it = 0 + _occa_thread_position.x; const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } threadgroup_barrier(mem_flags::mem_threadgroup); { int it = 0 + _occa_thread_position.x; const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } } } ============================================== Test time = 0.25 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-metal" end time: Feb 25 05:36 CST "bin-internal-lang-modes-metal" time elapsed: 00:00:00 ---------------------------------------------------------- 27/63 Testing: bin-internal-lang-modes-okl 27/63 Test: bin-internal-lang-modes-okl Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/okl" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-okl" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- (source):1:9: Error: [@kernel] functions must have a [void] return type @kernel int foo() {} ^ (source):1:20: Error: [@kernel] requires at least one [@outer] for-loop @kernel void foo() {} ^ (source):1:20: Error: [@kernel] requires at least one [@inner] for-loop @kernel void foo() { ^ (source):1:20: Error: [@kernel] requires at least one [@outer] for-loop @kernel void foo() { ^ (source):2:6: Error: [outer] OKL for loop init-statement must be a simple declaration with initializer for (o = 0;;; @outer) { ^ (source):2:12: Error: [outer] Iterator variable needs to be of type [char, short, int, long, ptrdiff_t, size_t] for (float o = 0;;; @outer) { ^ (source):2:17: Error: [outer] OKL for loops can only have 1 iterator variable for (int o = 0, j = 0;;; @outer) { ^ (source):2:16: Error: [outer] Expected comparing [o] with some bound for (int o = 0;;; @outer) { ^ (source):2:17: Error: [outer] {1} Expected to compare [o] with one of these operators [<, <=, >=, >] for (int o = 0; o + 2;; @outer) { ^ (source):2:17: Error: [outer] {2} Expected to compare [o] with one of these operators [<, <=, >=, >] for (int o = 0; j < 2;; @outer) { ^ (source):2:23: Error: [outer] Expected to update [o] for (int o = 0; o < 2;; @outer) { ^ (source):2:26: Error: [outer] Expected update [o] with one of these operators [++, --, +=, -=] for (int o = 0; o < 2; o *= 2; @outer) { ^ (source):2:24: Error: [outer] Expected update [o] with one of these operators [++, --, +=, -=] for (int o = 0; o < 2; ++j; @outer) { ^ (source):2:10: Error: [outer] OKL for loop variable is not initialized. for (int o; o < 2; ++o; @outer) { ^ (source):2:6: Error: [outer] OKL for loop variable does not have a name. for (int; o < 2; ++o; @outer) { ^ (source):2:7: Error: [outer] OKL for loop init-statement cannot be be a null statement for ( ; o < 2; ++o; @outer) { ^ (source):3:6: Error: [inner] OKL for loop init-statement must be a simple declaration with initializer for (i = 0;;; @inner) {} ^ (source):3:12: Error: [inner] Iterator variable needs to be of type [char, short, int, long, ptrdiff_t, size_t] for (float i = 0;;; @inner) {} ^ (source):3:17: Error: [inner] OKL for loops can only have 1 iterator variable for (int i = 0, j = 0;;; @inner) {} ^ (source):3:16: Error: [inner] Expected comparing [i] with some bound for (int i = 0;;; @inner) {} ^ (source):3:17: Error: [inner] {1} Expected to compare [i] with one of these operators [<, <=, >=, >] for (int i = 0; i + 2;; @inner) {} ^ (source):3:17: Error: [inner] {2} Expected to compare [i] with one of these operators [<, <=, >=, >] for (int i = 0; j < 2;; @inner) {} ^ (source):3:23: Error: [inner] Expected to update [i] for (int i = 0; i < 2;; @inner) {} ^ (source):3:26: Error: [inner] Expected update [i] with one of these operators [++, --, +=, -=] for (int i = 0; i < 2; i *= 2; @inner) {} ^ (source):3:24: Error: [inner] Expected update [i] with one of these operators [++, --, +=, -=] for (int i = 0; i < 2; ++j; @inner) {} ^ (source):3:10: Error: [inner] OKL for loop variable is not initialized. for (int i; i < 2; ++i; @inner) {} ^ (source):3:6: Error: [inner] OKL for loop variable does not have a name. for (int; i < 2; ++i; @inner) {} ^ (source):3:7: Error: [inner] OKL for loop init-statement cannot be be a null statement for ( ; i < 2; ++i; @inner) {} ^ (source):1:20: Error: [@kernel] requires at least one [@inner] for-loop @kernel void foo() { ^ (source):1:20: Error: [@kernel] requires at least one [@inner] for-loop @kernel void foo() { ^ (source):2:57: Error: Cannot have [@inner] loop outside of an [@outer] loop for (int i = 0; i < 2; ++i; @tile(1, @inner, @outer)) { ^ (source):2:39: Error: Cannot have [@inner] loop outside of an [@outer] loop for (int i = 0; i < 2; ++i; @inner) { ^ (source):4:46: Error: Cannot have [@outer] loop inside an [@inner] loop for (int o2 = 0; o2 < 2; ++o2; @outer) {} ^ (source):3:41: Error: Mismatch of [@inner] loops for (int i = 0; i < 2; ++i; @inner) {} ^ (source):3:43: Error: OKL for loop range is empty or infinite! for (int i = 10; i < 2; i+=3; @inner) { ^ (source):3:44: Error: OKL for loop range is empty or infinite! for (int i = 10; i > 11; i-=3; @inner) { ^ (source):3:42: Error: OKL for loop range is empty or infinite! for (int i = 0; i < 2; i-=5; @inner) { ^ (source):3:21: Error: [inner] {1} Expected to compare [i] with one of these operators [<, <=, >=, >] for (int i = 2; i > 2=0; i+=5; @inner) { ^ (source):2:4: Error: [@max_inner_dims] arguments must be postive! @max_inner_dims(0) ^ Error: No [@kernel] functions found (source):2:11: Error: Must define [@shared] variables between [@outer] and [@inner] loops @shared int s[10]; ^ (source):4:15: Error: Cannot define [@shared] variables inside an [@inner] loop @shared int s[10]; ^ (source):2:14: Error: Must define [@exclusive] variables between [@outer] and [@inner] loops @exclusive int x; ^ (source):4:18: Error: Cannot define [@exclusive] variables inside an [@inner] loop @exclusive int x; ^ (source):3:18: Error: [@shared] variables must have sizes known at compile-time @shared int s[o]; ^ (source):3:21: Error: [@shared] variables must have sizes known at compile-time @shared int s[2][o]; ^ (source):3:21: Error: [@shared] variables must have sizes known at compile-time @shared int s[2][]; ^ (source):5:5: Error: Statement cannot be directly inside an [@outer] loop break; } ^ (source):2:39: Error: [@outer] loop is here for (int o = 0; o < 2; ++o; @outer) { ^ (source):4:7: Error: Statement cannot be directly inside an [@inner] loop break; } ^ (source):3:41: Error: [@inner] loop is here for (int i = 0; i < 2; ++i; @inner) { ^ (source):5:5: Error: Statement cannot be directly inside an [@outer] loop continue; } ^ (source):2:39: Error: [@outer] loop is here for (int o = 0; o < 2; ++o; @outer) { ^ (source):4:7: Error: Statement cannot be directly inside an [@inner] loop continue; } ^ (source):3:41: Error: [@inner] loop is here for (int i = 0; i < 2; ++i; @inner) { ^ Test time = 0.58 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-okl" end time: Feb 25 05:36 CST "bin-internal-lang-modes-okl" time elapsed: 00:00:00 ---------------------------------------------------------- 28/63 Testing: bin-internal-lang-modes-opencl 28/63 Test: bin-internal-lang-modes-opencl Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/opencl" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-opencl" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; const int var[10]; void foo() {} int baz(int i) {} extern "C" void kernel(occa::modeKernel_t ** deviceKernels, occa::modeMemory_t * arg, const int & bar) { { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 2; inner.dims = 2; int o1 = 0; outer[1] = O1 - 0; int o0 = 0; outer[0] = O0 - 0; int i1 = 10; inner[1] = ((I1 + 4) - 10 + 3 - 1) / 3; int i0 = 0; inner[0] = I0 - 0; occa::kernel kernel(deviceKernels[1]); kernel.setRunDims(outer, inner); kernel(arg, bar); } { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[2]); kernel.setRunDims(outer, inner); kernel(arg, bar); } } ============================================== ---[ Device ]--------------------------------- #pragma OPENCL EXTENSION cl_khr_fp64 : enable __constant int var[10]; void foo(); void foo() {} int baz(int i); int baz(int i) {} __kernel void _occa_kernel_0(__global int * restrict arg, const int bar); __kernel void _occa_kernel_0(__global int * restrict arg, const int bar) { __local int shr[3]; { int o1 = 0 + get_group_id(1); { int o0 = 0 + get_group_id(0); int excl; if (true) { { int i1 = 10 + (3 * get_local_id(1)); { int i0 = 0 + get_local_id(0); for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } __kernel void _occa_kernel_1(__global int * restrict arg, const int bar); __kernel void _occa_kernel_1(__global int * restrict arg, const int bar) { __local int shr[3]; { int o1 = 0 + get_group_id(0); { int o0 = 0 + get_group_id(1); int excl; if (true) { { int i1 = 10 + (3 * get_local_id(1)); { int i0 = 0 + get_local_id(0); for (; ; ) { excl = i0; } for (; ; ) { excl = i0; } } } } } } } __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_kernel_2(__global int * restrict arg, const int bar); __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_kernel_2(__global int * restrict arg, const int bar) { { int ib = 0 + (16 * get_group_id(0)); { int it = 0 + get_local_id(0); const int i = ib + it; if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int _occa_tiled_i = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int i = _occa_tiled_i; inner[0] = (_occa_tiled_i + 16) - _occa_tiled_i; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #pragma OPENCL EXTENSION cl_khr_fp64 : enable __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_addVectors_0(const int entries, __global const float * a, __global const float * b, __global float * ab); __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_addVectors_0(const int entries, __global const float * a, __global const float * b, __global float * ab) { { int _occa_tiled_i = 0 + (16 * get_group_id(0)); { int i = _occa_tiled_i + get_local_id(0); if (i < entries) { ab[i] = a[i] + b[i]; } } } } ============================================== ---[ Host ]----------------------------------- #include #include #include #include #include #include using namespace std; using namespace occa; extern "C" void addVectors(occa::modeKernel_t ** deviceKernels, const int & entries, occa::modeMemory_t * a, occa::modeMemory_t * b, occa::modeMemory_t * ab) { { occa::dim outer, inner; outer.dims = 1; inner.dims = 1; int ib = 0; outer[0] = (entries - 0 + 16 - 1) / 16; int it = 0; inner[0] = 16 - 0; occa::kernel kernel(deviceKernels[0]); kernel.setRunDims(outer, inner); kernel(entries, a, b, ab); } } ============================================== ---[ Device ]--------------------------------- #pragma OPENCL EXTENSION cl_khr_fp64 : enable __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_addVectors_0(const int entries, __global const float * a, __global const float * b, __global float * ab); __kernel __attribute__((reqd_work_group_size(16,1,1))) void _occa_addVectors_0(const int entries, __global const float * a, __global const float * b, __global float * ab) { __local int foo[10]; { int ib = 0 + (16 * get_group_id(0)); { int it = 0 + get_local_id(0); const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } barrier(CLK_LOCAL_MEM_FENCE); { int it = 0 + get_local_id(0); const int i = ib + it; if (i < entries) { foo[i] = a[i] + b[i]; } } } } ============================================== Test time = 0.30 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-opencl" end time: Feb 25 05:36 CST "bin-internal-lang-modes-opencl" time elapsed: 00:00:00 ---------------------------------------------------------- 29/63 Testing: bin-internal-lang-modes-openmp 29/63 Test: bin-internal-lang-modes-openmp Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/openmp" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-openmp" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.15 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-openmp" end time: Feb 25 05:36 CST "bin-internal-lang-modes-openmp" time elapsed: 00:00:00 ---------------------------------------------------------- 30/63 Testing: bin-internal-lang-modes-serial 30/63 Test: bin-internal-lang-modes-serial Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/modes/serial" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-modes-serial" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.09 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-modes-serial" end time: Feb 25 05:36 CST "bin-internal-lang-modes-serial" time elapsed: 00:00:00 ---------------------------------------------------------- 31/63 Testing: bin-internal-lang-parser-errors 31/63 Test: bin-internal-lang-parser-errors Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/errors" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-errors" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Testing parser errors ]-------------------- (source):1:5: Error: [2] Expected a [;] 2 + 3 ^ (source):1:2: Error: [2] Expected a [;] -2 ^ (source):1:6: Error: [2] Expected a [;] 2 = {} ^ (source):1:9: Error: [2] Expected a [;] sizeof(4) ^ Error: [No Token] [3] Expected a [;] (source):1:11: Error: [1] Expected a [;] int foo = 3 ^ (source):1:20: Error: [1] Expected a [;] int foo = 3, bar = 4 ^ (source):1:21: Error: [1] Expected a [;] int foo = 3, *bar = 4 ^ (source):1:11: Error: Missing namespace body {} namespace foo ^ (source):1:14: Error: Missing namespace body {} namespace foo:: ^ (source):1:19: Error: Missing namespace body {} namespace foo::bar:: ^ (source):1:15: Error: Expected namespace body {} namespace foo + {} ^ Error: [No Token] [4] Expected a [;] Error: [No Token] [3] Expected a [;] Error: [No Token] [3] Expected a [;] (source):1:11: Error: Expected struct body {} struct foo; ^ (source):2:3: Error: Expected variable declaration statements 3; ^ (source):1:12: Error: Unable to load type struct foo { ^ (source):2:8: Error: Struct functions are not supported yet void bar(); ^ (source):1:12: Error: Unable to load type struct foo { ^ (source):2:3: Error: Access modifiers are not supported yet public: ^ (source):1:12: Error: Unable to load type struct foo { ^ (source):2:3: Error: Access modifiers are not supported yet protected: ^ (source):1:12: Error: Unable to load type struct foo { ^ (source):2:3: Error: Access modifiers are not supported yet private: ^ (source):1:12: Error: Unable to load type struct foo { ^ (source):2:11: Error: Struct fields cannot have default values int x = 3; ^ (source):1:12: Error: Unable to load type struct foo { ^ Error: [No Token] Missing content for [if] statement (source):1:7: Error: Missing condition for [if] statement if () {} ^ (source):1:4: Error: Expected an empty, expression, or declaration statement if (if (true) {}) {} ^ (source):1:6: Error: Too many statements, expected 1 if (;;) {} ^ (source):1:9: Error: Unknown attribute if (;) @attr {} ^ (source):1:11: Error: Unknown attribute for (;;) @attr {} ^ (source):1:9: Error: Too many statements, expected 1 while (;;) {} ^ (source):1:6: Error: Expected [while] condition after [do] do {}; ^ Error: [No Token] Expected [while] condition after [do] (source):1:15: Error: Too many statements, expected 1 do {} while (;;); ^ Error: [No Token] [5] Expected a [;] Error: [No Token] [5] Expected a [;] Error: [No Token] [5] Expected a [;] (source):1:12: Error: Unknown attribute while (;) @attr {} ^ (source):1:17: Error: Missing content for [while] statement while (;) @attr {} ^ (source):1:26: Error: Unknown attribute do {} while (int i = 0) @attr; ^ Error: [No Token] Missing condition for [switch] statement (source):1:13: Error: Missing content for [switch] statement switch (true) ^ (source):1:13: Error: Missing statement for switch's [case] switch (true) case 2: ^ (source):1:13: Error: Missing statement for switch's [case] switch (true) default: ^ (source):1:10: Error: Too many statements, expected 1 switch (;;) {} ^ (source):1:16: Error: Unknown attribute switch (true) @attr {} ^ (source):1:13: Error: Missing content for [switch] statement switch (true) @attr {} ^ (source):1:16: Error: Unknown attribute switch (true) @attr default:; ^ (source):1:13: Error: Missing content for [switch] statement switch (true) @attr default:; ^ Error: [No Token] [6] Expected a [;] Error: [No Token] [7] Expected a [;] Error: [No Token] [8] Expected a [;] (source):1:12: Error: [8] Expected a [;] return 1 + 2 ^ (source):1:1: Error: Expected a [:] public ^ (source):1:1: Error: Expected a [:] protected ^ (source):1:1: Error: Expected a [:] private ^ Error: [No Token] Expected [goto label] identifier (source):1:5: Error: Expected [goto label] identifier goto; ^ (source):1:2: Error: Unknown attribute @attr ^ (source):1:2: Error: Unknown attribute @attr() ^ (source):1:2: Error: [@dim] expects at least one argument @dim; ^ (source):1:2: Error: [@dim] expects at least one argument @dim int x; ^ (source):1:2: Error: [@dim] expects at least one argument @dim() int x; ^ (source):1:2: Error: [@dim] does not take kwargs @dim(x=1) int x; ^ (source):1:2: Error: Cannot apply attribute to a [empty] statement @tile(16); ^ (source):1:10: Error: Trying to add @tile to this statement @tile(16); ^ (source):1:13: Error: [@tile] does not take this kwarg @tile(16, x=1); ^ (source):1:17: Error: [@tile] 'check' argument must be true or false @tile(16, check='o'); ^ (source):1:2: Error: Cannot apply attribute to a [empty] statement @dimOrder(1, 0); ^ (source):1:16: Error: Trying to add @dimOrder to this statement @dimOrder(1, 0); ^ (source):1:2: Error: [@dimOrder] expects at least one argument @dimOrder() int x; ^ (source):1:2: Error: [@dimOrder] arguments must be known at compile-time and an ordering of [0] @dimOrder(,) int x; ^ (source):1:13: Error: [@dimOrder] arguments must be known at compile-time and an ordering of [0, 1, 2] @dimOrder(1,x,0) int x; ^ (source):1:17: Error: [@dimOrder] arguments must be known at compile-time and an ordering of [0, 1, 2, 3] @dimOrder(0,1,2,4) int x; ^ (source):1:11: Error: [@dimOrder] arguments must be known at compile-time and an ordering of [0, 1, 2, 3] @dimOrder(-1,1,2,4) int x; ^ (source):1:11: Error: [@dimOrder] arguments must be known at compile-time and an ordering of [0] @dimOrder(11) int x; ^ ============================================== Test time = 0.70 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-errors" end time: Feb 25 05:36 CST "bin-internal-lang-parser-errors" time elapsed: 00:00:00 ---------------------------------------------------------- 32/63 Testing: bin-internal-lang-parser-peek 32/63 Test: bin-internal-lang-parser-peek Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/peek" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-peek" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.32 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-peek" end time: Feb 25 05:36 CST "bin-internal-lang-parser-peek" time elapsed: 00:00:00 ---------------------------------------------------------- 33/63 Testing: bin-internal-lang-parser-scope 33/63 Test: bin-internal-lang-parser-scope Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/scope" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-scope" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Testing scope errors ]--------------------- (source):2:5: Error: [x] is already defined int x; ^ (source):1:5: Error: [x] was first defined here int x; ^ (source):2:13: Error: [x] is already defined typedef int x; ^ (source):1:5: Error: [x] was first defined here int x; ^ (source):2:5: Error: [x] is already defined int x; ^ (source):1:13: Error: [x] was first defined here typedef int x; ^ (source):2:13: Error: [x] is already defined typedef int x; ^ (source):1:13: Error: [x] was first defined here typedef int x; ^ (source):2:5: Error: [x] is already defined int x; ^ (source):1:6: Error: [x] was first defined here void x() {} ^ (source):2:13: Error: [x] is already defined typedef int x; ^ (source):1:6: Error: [x] was first defined here void x() {} ^ (source):1:8: Error: [x] is already defined int x, x; ^ (source):1:5: Error: [x] was first defined here int x, x; ^ ============================================== Test time = 0.23 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-scope" end time: Feb 25 05:36 CST "bin-internal-lang-parser-scope" time elapsed: 00:00:00 ---------------------------------------------------------- 34/63 Testing: bin-internal-lang-parser-statementLoading 34/63 Test: bin-internal-lang-parser-statementLoading Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/statementLoading" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-statementLoading" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ @dim Transformations ]--------------------- int * x; x[1 + (1 * (2 + (2 * 3)))]; int * x; x[1 + (3 * (2 + (2 * 3)))]; int * x; x[1 + (1 * (2 + (2 * 3)))]; int * x; x[2 + (2 * (3 + (3 * 1)))]; int * x; x[3 + (3 * (1 + (1 * 2)))]; int * x; x[3 + (3 * (2 + (2 * 1)))]; ============================================== ---[ @restrict Transformations ]------------ void foo(int * __restrict__ a) {} ============================================== ---[ @tile Transformations ]-------------------- for (int _occa_tiled_i = 0; _occa_tiled_i < (1 + 2 + N + 6); _occa_tiled_i += 16) { for (int i = _occa_tiled_i; i < (_occa_tiled_i + 16); ++i) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i > (1 + 2 + N + 6); _occa_tiled_i -= 16) { for (int i = _occa_tiled_i; i > (_occa_tiled_i - 16); --i) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i <= (1 + 2 + N + 6); _occa_tiled_i += 16) { for (int i = _occa_tiled_i; i < (_occa_tiled_i + 16); i++) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i >= (1 + 2 + N + 6); _occa_tiled_i -= 16) { for (int i = _occa_tiled_i; i > (_occa_tiled_i - 16); i--) { if (i >= (1 + 2 + N + 6)) { int x; } } } for (int _occa_tiled_i = 0; (1 + 2 + N + 6) > _occa_tiled_i; _occa_tiled_i += (16 * 3)) { for (int i = _occa_tiled_i; (_occa_tiled_i + 16) > i; i += 3) { if ((1 + 2 + N + 6) > i) { int x; } } } for (int _occa_tiled_i = 0; (1 + 2 + N + 6) <= _occa_tiled_i; _occa_tiled_i -= (16 * (2 + 3))) { for (int i = _occa_tiled_i; (_occa_tiled_i - 16) < i; i -= 2 + 3) { if ((1 + 2 + N + 6) <= i) { int x; } } } ============================================== a[i] = b >= 0 ? c[i] : -d[-e - 1]; ---[ @dim Transformations ]--------------------- int * x; x[1 + (1 * (2 + (2 * 3)))]; int * x; x[1 + (3 * (2 + (2 * 3)))]; int * x; x[1 + (1 * (2 + (2 * 3)))]; int * x; x[2 + (2 * (3 + (3 * 1)))]; int * x; x[3 + (3 * (1 + (1 * 2)))]; int * x; x[3 + (3 * (2 + (2 * 1)))]; ============================================== ---[ @restrict Transformations ]------------ void foo(int * __restrict__ a) {} ============================================== ---[ @tile Transformations ]-------------------- for (int _occa_tiled_i = 0; _occa_tiled_i < (1 + 2 + N + 6); _occa_tiled_i += 16) { for (int i = _occa_tiled_i; i < (_occa_tiled_i + 16); ++i) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i > (1 + 2 + N + 6); _occa_tiled_i -= 16) { for (int i = _occa_tiled_i; i > (_occa_tiled_i - 16); --i) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i <= (1 + 2 + N + 6); _occa_tiled_i += 16) { for (int i = _occa_tiled_i; i < (_occa_tiled_i + 16); i++) { int x; } } for (int _occa_tiled_i = 0; _occa_tiled_i >= (1 + 2 + N + 6); _occa_tiled_i -= 16) { for (int i = _occa_tiled_i; i > (_occa_tiled_i - 16); i--) { if (i >= (1 + 2 + N + 6)) { int x; } } } for (int _occa_tiled_i = 0; (1 + 2 + N + 6) > _occa_tiled_i; _occa_tiled_i += (16 * 3)) { for (int i = _occa_tiled_i; (_occa_tiled_i + 16) > i; i += 3) { if ((1 + 2 + N + 6) > i) { int x; } } } for (int _occa_tiled_i = 0; (1 + 2 + N + 6) <= _occa_tiled_i; _occa_tiled_i -= (16 * (2 + 3))) { for (int i = _occa_tiled_i; (_occa_tiled_i - 16) < i; i -= 2 + 3) { if ((1 + 2 + N + 6) <= i) { int x; } } } ============================================== Test time = 0.79 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-statementLoading" end time: Feb 25 05:36 CST "bin-internal-lang-parser-statementLoading" time elapsed: 00:00:00 ---------------------------------------------------------- 35/63 Testing: bin-internal-lang-parser-typeLoading 35/63 Test: bin-internal-lang-parser-typeLoading Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/typeLoading" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-typeLoading" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- ---[ Testing type errors ]---------------------- Error: [No Token] Expected a type (source):1:7: Error: Expected a type const foo ^ Error: [No Token] Expected a type (source):1:7: Error: Expected a type const * ^ (source):1:9: Error: Cannot add this qualifier to a pointer float * long ^ (source):1:5: Error: Unable to apply operator int[-] ^ (source):1:13: Error: Unable to apply operator int varname[-] ^ ================================================ Test time = 0.52 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-typeLoading" end time: Feb 25 05:36 CST "bin-internal-lang-parser-typeLoading" time elapsed: 00:00:00 ---------------------------------------------------------- 36/63 Testing: bin-internal-lang-parser-typeMethods 36/63 Test: bin-internal-lang-parser-typeMethods Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/parser/typeMethods" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-parser-typeMethods" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.16 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-parser-typeMethods" end time: Feb 25 05:36 CST "bin-internal-lang-parser-typeMethods" time elapsed: 00:00:00 ---------------------------------------------------------- 37/63 Testing: bin-internal-lang-preprocessor 37/63 Test: bin-internal-lang-preprocessor Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/preprocessor" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-preprocessor" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Testing preprocessor errors: (source):26:9: Expanded from macro 'Error_A': (source):27:1: Error: Expected 1 argument, instead found none Error_A() ^ (source):28:9: Expanded from macro 'Error_B': (source):29:12: Error: Too many arguments, expected 1 argument Error_B(4, 5, 6) ^ (source):30:27: Expanded from macro 'C1': (source):1:1: Error: Unable to concat tokens "1"3 ^ Testing wrong macro redefinitions: Testing error and warning directives (source):1:8: Error: "Testing #error" #error "Testing #error" ^ foobar:4:129: Included file: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/files/preprocessor.hpp:4:10: Error: "Found the testing error" # error "Found the testing error" ^ foobar:1:12: Error: @directive expects a string argument which starts with # @directive("foo a b c") ^ foobar:1:12: Error: @directive expects a string argument cannot contain newlines @directive("#pragma foo \n a b c") ^ foobar:1:2: Error: [1] @directive expects a string argument @directive ^ foobar:1:2: Error: [1] @directive expects a string argument @directive() ^ foobar:1:2: Error: [2] @directive expects a string argument @directive(2) ^ foobar:1:2: Error: [2] @directive expects a string argument @directive("a" 2) ^ Test time = 0.41 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-preprocessor" end time: Feb 25 05:36 CST "bin-internal-lang-preprocessor" time elapsed: 00:00:00 ---------------------------------------------------------- 38/63 Testing: bin-internal-lang-stream 38/63 Test: bin-internal-lang-stream Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/stream" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-stream" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-stream" end time: Feb 25 05:36 CST "bin-internal-lang-stream" time elapsed: 00:00:00 ---------------------------------------------------------- 39/63 Testing: bin-internal-lang-tokenContext 39/63 Test: bin-internal-lang-tokenContext Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/tokenContext" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-tokenContext" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Testing pair errors: (source):1:5: Error: Could not find an opening '(' 1, 2) ^ (source):1:5: Error: Could not find an opening '[' 1, 2] ^ (source):1:5: Error: Could not find an opening '{' 1, 2} ^ (source):1:5: Error: Could not find an opening '<<<' 1, 2>>> ^ (source):1:1: Error: Could not find a closing ']' [1, 2) ^ (source):1:1: Error: Could not find a closing '}' {1, 2] ^ (source):1:1: Error: Could not find a closing '>>>' <<<1, 2} ^ (source):1:1: Error: Could not find a closing ')' (1, 2>>> ^ Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-tokenContext" end time: Feb 25 05:36 CST "bin-internal-lang-tokenContext" time elapsed: 00:00:00 ---------------------------------------------------------- 40/63 Testing: bin-internal-lang-tokenizer-misc 40/63 Test: bin-internal-lang-tokenizer-misc Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/tokenizer/misc" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-tokenizer-misc" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- left : [68719476735] right: [-2408570368] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/internal/lang/tokenizer/misc.cpp Line : 51 Function : testPrimitiveMethods Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 misc testPrimitiveMethods() 2 misc main 1 misc start ================================================================================ Test time = 0.09 sec ---------------------------------------------------------- Test Failed. "bin-internal-lang-tokenizer-misc" end time: Feb 25 05:36 CST "bin-internal-lang-tokenizer-misc" time elapsed: 00:00:00 ---------------------------------------------------------- 41/63 Testing: bin-internal-lang-tokenizer-movement 41/63 Test: bin-internal-lang-tokenizer-movement Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/tokenizer/movement" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-tokenizer-movement" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-tokenizer-movement" end time: Feb 25 05:36 CST "bin-internal-lang-tokenizer-movement" time elapsed: 00:00:00 ---------------------------------------------------------- 42/63 Testing: bin-internal-lang-tokenizer-string 42/63 Test: bin-internal-lang-tokenizer-string Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/tokenizer/string" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-tokenizer-string" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-tokenizer-string" end time: Feb 25 05:36 CST "bin-internal-lang-tokenizer-string" time elapsed: 00:00:00 ---------------------------------------------------------- 43/63 Testing: bin-internal-lang-tokenizer-token 43/63 Test: bin-internal-lang-tokenizer-token Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/tokenizer/token" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-tokenizer-token" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-tokenizer-token" end time: Feb 25 05:36 CST "bin-internal-lang-tokenizer-token" time elapsed: 00:00:00 ---------------------------------------------------------- 44/63 Testing: bin-internal-lang-type 44/63 Test: bin-internal-lang-type Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/lang/type" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-lang-type" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-lang-type" end time: Feb 25 05:36 CST "bin-internal-lang-type" time elapsed: 00:00:00 ---------------------------------------------------------- 45/63 Testing: bin-internal-modes 45/63 Test: bin-internal-modes Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/modes" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-modes" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- No OCCA mode given, defaulting to [Serial] mode [Foo] mode is not enabled, defaulting to [Serial] mode Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-modes" end time: Feb 25 05:36 CST "bin-internal-modes" time elapsed: 00:00:00 ---------------------------------------------------------- 46/63 Testing: bin-internal-utils-cli 46/63 Test: bin-internal-utils-cli Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/cli" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-cli" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-cli" end time: Feb 25 05:36 CST "bin-internal-utils-cli" time elapsed: 00:00:00 ---------------------------------------------------------- 47/63 Testing: bin-internal-utils-gc 47/63 Test: bin-internal-utils-gc Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/gc" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-gc" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-gc" end time: Feb 25 05:36 CST "bin-internal-utils-gc" time elapsed: 00:00:00 ---------------------------------------------------------- 48/63 Testing: bin-internal-utils-lex 48/63 Test: bin-internal-utils-lex Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/lex" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-lex" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-lex" end time: Feb 25 05:36 CST "bin-internal-utils-lex" time elapsed: 00:00:00 ---------------------------------------------------------- 49/63 Testing: bin-internal-utils-misc 49/63 Test: bin-internal-utils-misc Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/misc" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-misc" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-misc" end time: Feb 25 05:36 CST "bin-internal-utils-misc" time elapsed: 00:00:00 ---------------------------------------------------------- 50/63 Testing: bin-internal-utils-string 50/63 Test: bin-internal-utils-string Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/string" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-string" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- left : [0 bytes] right: [4 GB] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/internal/utils/string.cpp Line : 158 Function : testHex Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 string testHex() 2 string main 1 string start ================================================================================ Test time = 0.08 sec ---------------------------------------------------------- Test Failed. "bin-internal-utils-string" end time: Feb 25 05:36 CST "bin-internal-utils-string" time elapsed: 00:00:00 ---------------------------------------------------------- 51/63 Testing: bin-internal-utils-sys 51/63 Test: bin-internal-utils-sys Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/sys" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-sys" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.06 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-sys" end time: Feb 25 05:36 CST "bin-internal-utils-sys" time elapsed: 00:00:00 ---------------------------------------------------------- 52/63 Testing: bin-internal-utils-testing 52/63 Test: bin-internal-utils-testing Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/testing" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-testing" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- left : [2] right: [1] left : [2] right: [1] left : [1] right: [2] left : [1] right: [2] left : [1] right: [2] left : [1] right: [1] left : [0] right: [1] left : [0] right: [0] Test time = 0.07 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-testing" end time: Feb 25 05:36 CST "bin-internal-utils-testing" time elapsed: 00:00:00 ---------------------------------------------------------- 53/63 Testing: bin-internal-utils-trie 53/63 Test: bin-internal-utils-trie Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/trie" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-trie" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-trie" end time: Feb 25 05:36 CST "bin-internal-utils-trie" time elapsed: 00:00:00 ---------------------------------------------------------- 54/63 Testing: bin-internal-utils-vector 54/63 Test: bin-internal-utils-vector Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/internal/utils/vector" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-internal-utils-vector" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-internal-utils-vector" end time: Feb 25 05:36 CST "bin-internal-utils-vector" time elapsed: 00:00:00 ---------------------------------------------------------- 55/63 Testing: bin-loops-forLoop 55/63 Test: bin-loops-forLoop Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/loops/forLoop" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-loops-forLoop" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- [CUDA] mode is not enabled, defaulting to [Serial] mode [HIP] mode is not enabled, defaulting to [Serial] mode Testing mode: Serial left : [0] right: [-1] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/loops/forLoop.cpp Line : 61 Function : testOuterForLoops Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 forLoop testOuterForLoops(occa::device) 2 forLoop main 1 forLoop start ================================================================================ Test time = 18.88 sec ---------------------------------------------------------- Test Failed. "bin-loops-forLoop" end time: Feb 25 05:36 CST "bin-loops-forLoop" time elapsed: 00:00:18 ---------------------------------------------------------- 56/63 Testing: bin-math-fpMath 56/63 Test: bin-math-fpMath Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/math/fpMath" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-math-fpMath" start time: Feb 25 05:36 CST Output: ---------------------------------------------------------- [CUDA] mode is not enabled, defaulting to [Serial] mode [HIP] mode is not enabled, defaulting to [Serial] mode [OpenCL] mode is not enabled, defaulting to [Serial] mode [dpcpp] mode is not enabled, defaulting to [Serial] mode Testing mode: Serial Testing mode: OpenMP Testing mode: Serial Testing mode: Serial Testing mode: Serial Testing mode: Serial Test time = 528.49 sec ---------------------------------------------------------- Test Passed. "bin-math-fpMath" end time: Feb 25 05:45 CST "bin-math-fpMath" time elapsed: 00:08:48 ---------------------------------------------------------- 57/63 Testing: bin-math-intMath 57/63 Test: bin-math-intMath Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/math/intMath" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-math-intMath" start time: Feb 25 05:45 CST Output: ---------------------------------------------------------- [CUDA] mode is not enabled, defaulting to [Serial] mode [HIP] mode is not enabled, defaulting to [Serial] mode [OpenCL] mode is not enabled, defaulting to [Serial] mode [dpcpp] mode is not enabled, defaulting to [Serial] mode Testing mode: Serial Testing mode: OpenMP Testing mode: Serial Testing mode: Serial Testing mode: Serial Testing mode: Serial Test time = 36.31 sec ---------------------------------------------------------- Test Passed. "bin-math-intMath" end time: Feb 25 05:46 CST "bin-math-intMath" time elapsed: 00:00:36 ---------------------------------------------------------- 58/63 Testing: bin-types-bits 58/63 Test: bin-types-bits Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/types/bits" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-types-bits" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- Test time = 0.05 sec ---------------------------------------------------------- Test Passed. "bin-types-bits" end time: Feb 25 05:46 CST "bin-types-bits" time elapsed: 00:00:00 ---------------------------------------------------------- 59/63 Testing: bin-types-dim 59/63 Test: bin-types-dim Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/types/dim" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-types-dim" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- [10, 20, 30] Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-types-dim" end time: Feb 25 05:46 CST "bin-types-dim" time elapsed: 00:00:00 ---------------------------------------------------------- 60/63 Testing: bin-types-json 60/63 Test: bin-types-json Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/types/json" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-types-json" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- left : [0.1] right: [0.1] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/types/json.cpp Line : 123 Function : testNumber Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 json testNumber() 2 json main 1 json start ================================================================================ Test time = 0.11 sec ---------------------------------------------------------- Test Failed. "bin-types-json" end time: Feb 25 05:46 CST "bin-types-json" time elapsed: 00:00:00 ---------------------------------------------------------- 61/63 Testing: bin-types-primitive 61/63 Test: bin-types-primitive Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/types/primitive" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-types-primitive" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- left : [15] right: [0] terminate called after throwing an instance of 'occa::exception' what(): ---[ Error ]-------------------------------------------------------------------- File : /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/occa-1.5.0/tests/src/types/primitive.cpp Line : 123 Function : testLoad Message : Assertion Failed: Values are not equal Stack 4 libocca.dylib occa::error(std::string const&, std::string const&, int, std::string const&) 3 primitive testLoad() 2 primitive main 1 primitive start ================================================================================ Test time = 0.07 sec ---------------------------------------------------------- Test Failed. "bin-types-primitive" end time: Feb 25 05:46 CST "bin-types-primitive" time elapsed: 00:00:00 ---------------------------------------------------------- 62/63 Testing: bin-fortran-typedefs 62/63 Test: bin-fortran-typedefs Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/fortran/typedefs" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-fortran-typedefs" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- STOP 0 ========+======================+=========================================== CPU(s) | Processor Name | Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz | Clock Frequency | 2.3 GHz | SIMD Instruction Set | N/A | SIMD Width | 32 bits | L1d Cache Size | 32 KB | L1i Cache Size | 32 KB | L2 Cache Size | 256 KB | L3 Cache Size | 6 MB ========+======================+=========================================== =============================================== OCCA C-Fortran interface type size info: -------------------------------+-----+--------- | C | Fortran -------------------------------+-----+--------- sizeof(occaType) | 28 | 28 sizeof(occaType.magicHeader) | 4 | 4 sizeof(occaType.type) | 4 | 4 sizeof(occaType.bytes) | 8 | 8 sizeof(occaType.needsFree) | 4 | 4 sizeof(occaType.value) | 8 | 8 =============================================== =============================================== Dump OCCA type data: ----------------------------------------------- Memory address: 0xbfffe8e8 magicHeader: 808504932 type: 1 bytes: 0 needsFree: 0 (false) value (C `union`): value.uint8_: 0 value.uint16_: 0 value.uint32_: 0 value.uint64_: 0 value.int8_: 0 value.int16_: 0 value.int32_: 0 value.int64_: 0 value.float_: 0.000000 value.double_: 0.000000 value.ptr: 0x0 =============================================== Test time = 0.09 sec ---------------------------------------------------------- Test Passed. "bin-fortran-typedefs" end time: Feb 25 05:46 CST "bin-fortran-typedefs" time elapsed: 00:00:00 ---------------------------------------------------------- 63/63 Testing: bin-fortran-types 63/63 Test: bin-fortran-types Command: "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests/bin/fortran/types" Directory: /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_libocca/libocca/work/build/tests "bin-fortran-types" start time: Feb 25 05:46 CST Output: ---------------------------------------------------------- STOP 0 Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "bin-fortran-types" end time: Feb 25 05:46 CST "bin-fortran-types" time elapsed: 00:00:00 ---------------------------------------------------------- End testing: Feb 25 05:46 CST