This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] Adding CLAMR
ClosedPublic

Authored by jiseung on Aug 14 2017, 3:12 PM.

Details

Summary

The CLAMR code is a cell-based adaptive mesh refinement (AMR) mini-app developed as a testbed for hybrid algorithm development using MPI and OpenCL GPU code.

Github

On Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz:

compile_time: 125.6392 
exec_time: 7.3060 
Maximum resident set size (kbytes): 13232

Diff Detail

Repository
rL LLVM

Event Timeline

jiseung created this revision.Aug 14 2017, 3:12 PM
jiseung edited the summary of this revision. (Show Details)Aug 15 2017, 10:50 AM
hfinkel added inline comments.Aug 15 2017, 11:42 AM
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/hash.c
85 ↗(On Diff #111081)

This also depends on rand. See my comments on this in D36621 and D36626.

And note that you can then do:

#define drand48() (1.0 * rand() / RAND_MAX)
#define srand48(x) srand(x)

jiseung updated this revision to Diff 111239.Aug 15 2017, 1:39 PM

Changed timer.x86.c as commented and also adjusted for the rand/srand function usage

jiseung updated this revision to Diff 111245.Aug 15 2017, 1:46 PM

Oops, wrong diff file uploaded before.

Adjusted for rand/srand/drand48/srand48 usage.

hfinkel edited edge metadata.Aug 15 2017, 3:56 PM

Oops, wrong diff file uploaded before.

Adjusted for rand/srand/drand48/srand48 usage.

Regarding the rand implementation, please see my comment in D36621.

jiseung updated this revision to Diff 111342.Aug 16 2017, 7:52 AM

Added Makefile and updated glibc_compat_rand.c

MatzeB accepted this revision.Aug 31 2017, 6:56 PM

Integration LGTM.

This revision is now accepted and ready to land.Aug 31 2017, 6:56 PM
This revision was automatically updated to reflect the committed changes.
test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/state.h