Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force inline functions for exponential clover calculations #122

Open
wants to merge 4 commits into
base: HiRep-CUDA
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Include/Core/gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
#define deviceonly
#endif

#ifdef WITH_GPU
#define forceinline __forceinline__
#else
#define forceinline __attribute__((always_inline)) inline
#endif

#ifdef WITH_GPU

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions Include/Core/hr_complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define _complex_add(a, b, c) (a) = (b) + (c)
#define _complex_sub(a, b, c) (a) = (b) - (c)
#define _complex_add_star(a, b, c) (a) = (b) + conj(c)
#define _complex_sub_star(a, b, c) (a) = (b) - conj(c)
#define _complex_sub_star(a, b, c) (a) = (b)-conj(c)
#define _complex_div(a, b, c) (a) = (b) / (c)
#define _complex_inv(a, b) (a) = 1 / (b)
#define _complex_prod(a, b) conj(a) * b
Expand All @@ -45,7 +45,7 @@
#define _complex_i_minus(a, b) (a) = -I * (b)
#define _complex_i_plus(a, b) (a) = I * (b)
#define _complex_i_add(a, b, c) (a) = (b) + I * (c)
#define _complex_i_sub(a, b, c) (a) = (b) - I * (c)
#define _complex_i_sub(a, b, c) (a) = (b)-I * (c)
#define _complex_add_assign(a, b) (a) += (b)
#define _complex_sub_assign(a, b) (a) -= (b)
#define _complex_add_star_assign(a, b, c) (a) += (b) + conj(c)
Expand Down
Loading