summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2020-05-29 13:29:10 +0200
committerGitHub <noreply@github.com>2020-05-29 13:29:10 +0200
commit6e270f91ec9bd610678b4d4a9026a653a402d9ad (patch)
tree25d5b7b85a2961442849b3ae483fc59d324092b3 /benchmark
parent200296b0f4c9f070632d29d4ed8ebb738914a2dd (diff)
downloadopenblas-6e270f91ec9bd610678b4d4a9026a653a402d9ad.tar.gz
openblas-6e270f91ec9bd610678b4d4a9026a653a402d9ad.tar.bz2
openblas-6e270f91ec9bd610678b4d4a9026a653a402d9ad.zip
add support for RETURN_BY_STACK semantics, e.g. clang
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/zdot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmark/zdot.c b/benchmark/zdot.c
index ed9d4d2e8..136135c9c 100644
--- a/benchmark/zdot.c
+++ b/benchmark/zdot.c
@@ -170,9 +170,11 @@ int main(int argc, char *argv[]){
y[i] = ((FLOAT) rand() / (FLOAT) RAND_MAX) - 0.5;
}
gettimeofday( &start, (struct timezone *)0);
-
+#ifdef RETURN_BY_STACK
+ DOT (&result , &m, x, &inc_x, y, &inc_y );
+#else
result = DOT (&m, x, &inc_x, y, &inc_y );
-
+#endif
gettimeofday( &stop, (struct timezone *)0);
time1 = (double)(stop.tv_sec - start.tv_sec) + (double)((stop.tv_usec - start.tv_usec)) * 1.e-6;