Trying to use HIP-CPU on Windows using Clang results in a compiler error:
deps/hip-cpu/include\hip/../../src/include/hip/detail/runtime.hpp:180:55: error: 't' cannot be thread local when declared 'dllexport'
static thread_local std::vector<Task> t;
^
Note to "self": change hip/hip_defines.h from
#if defined(_WIN32)
to
#if defined(_WIN32) && (!defined(__clang__))
solves this issue. Likely a more sophisticated mechanism will be needed instead of this hotfix.
Trying to use HIP-CPU on Windows using Clang results in a compiler error:
Note to "self": change
hip/hip_defines.h
fromto
solves this issue. Likely a more sophisticated mechanism will be needed instead of this hotfix.