You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditional compilation in hamiltonian.py, if users are using CPU, skip to compile GPU code, and vice versa. (hamiltonian扩展条件编译 #42)
Make CPU kernels better for CPU, such as, do not double check in add_into_heap, which is designed for mutex previously, and replace thrust::sort by std::sort.
Use std::sort(from C++ standard library) instead of thrust::sort(from CUDA indeed). Currently, we also use thrust::sort_by_key but there is not such equivalent in C++ standard library. (Remove thrust from dependencies of the cpu kernel. #46)
Description
Operators about Hamiltonian are only implemented in cuda now, which makes we cannot execute the program without cuda device.
hamiltonian.py, if users are using CPU, skip to compile GPU code, and vice versa. (hamiltonian扩展条件编译 #42)add_into_heap(Remove duplicated if checking in add_into_heap for cpu. #49)thrust::sort_by_keybut there is not such equivalent in C++ standard library. (Remove thrust from dependencies of the cpu kernel. #46)