diff --git a/src/device.cpp b/src/device.cpp index 5f814c8ae..5ce614bcd 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -380,6 +380,7 @@ namespace occa { occa::properties allProps = props + kernelProperties(); allProps["mode"] = mode(); + // TODO: [#184] Properly hash through device hash_t kernelHash = (hash() ^ occa::hash(allProps) ^ hashFile(filename)); diff --git a/tests/src/c/types.cpp b/tests/src/c/types.cpp index c82cbf607..0d319137f 100644 --- a/tests/src/c/types.cpp +++ b/tests/src/c/types.cpp @@ -44,9 +44,11 @@ void testNewOccaTypes() { occaType value = occaUndefined; ASSERT_TRUE(occaIsUndefined(value)); + ASSERT_FALSE(occaIsDefault(value)); - value = occaInt(1); + value = occaDefault; ASSERT_FALSE(occaIsUndefined(value)); + ASSERT_TRUE(occaIsDefault(value)); TEST_OCCA_TYPE((void*) NULL, OCCA_PTR);