Skip to content

Commit

Permalink
[Device] kernelHash was not using the proper properties object
Browse files Browse the repository at this point in the history
  • Loading branch information
dmed256 committed Sep 1, 2018
1 parent 843be36 commit b7384bc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/mode/cuda/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ namespace occa {

hash_t device::kernelHash(const occa::properties &props) const {
return (
occa::hash(properties["compiler"])
^ properties["compiler_flags"]
^ properties["compiler_env_script"]
occa::hash(props["compiler"])
^ props["compiler_flags"]
^ props["compiler_env_script"]
);
}

Expand Down
6 changes: 3 additions & 3 deletions src/mode/hip/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ namespace occa {

hash_t device::kernelHash(const occa::properties &props) const {
return (
occa::hash(properties["compiler"])
^ properties["compiler_flags"]
^ properties["compiler_env_script"]
occa::hash(props["compiler"])
^ props["compiler_flags"]
^ props["compiler_env_script"]
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/mode/opencl/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ namespace occa {

hash_t device::kernelHash(const occa::properties &props) const {
return (
occa::hash(properties["compiler"])
^ properties["compiler_flags"]
occa::hash(props["compiler"])
^ props["compiler_flags"]
);
}

Expand Down
8 changes: 4 additions & 4 deletions src/mode/openmp/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ namespace occa {

hash_t device::kernelHash(const occa::properties &props) const {
return (
occa::hash(properties["vendor"])
^ properties["compiler"]
^ properties["compiler_flags"]
^ properties["compiler_env_script"]
occa::hash(props["vendor"])
^ props["compiler"]
^ props["compiler_flags"]
^ props["compiler_env_script"]
);
}

Expand Down
8 changes: 4 additions & 4 deletions src/mode/serial/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ namespace occa {

hash_t device::kernelHash(const occa::properties &props) const {
return (
occa::hash(properties["vendor"])
^ properties["compiler"]
^ properties["compiler_flags"]
^ properties["compiler_env_script"]
occa::hash(props["vendor"])
^ props["compiler"]
^ props["compiler_flags"]
^ props["compiler_env_script"]
);
}

Expand Down

0 comments on commit b7384bc

Please sign in to comment.