Bug 68857 - [cypress] SNU OpenCL NAS Parallel Benchmarks don't work
Summary: [cypress] SNU OpenCL NAS Parallel Benchmarks don't work
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
Depends on:
Blocks: 99553
  Show dependency treegraph
Reported: 2013-09-02 17:59 UTC by Nat Tuck
Modified: 2019-09-18 19:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Nat Tuck 2013-09-02 17:59:46 UTC
None of the benchmarks in the SNU OpenCL NAS Parallel Benchmarks are working. They're available from http://aces.snu.ac.kr/Center_for_Manycore_Programming/SNU_NPB_Suite.html

I've got a Radeon 5830 and have installed Mesa from git using the instructions at http://dri.freedesktop.org/wiki/GalliumCompute/

Most of the benchmarks fail at
  Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function

The FFT benchmark fails at
  error: parameter may not be qualified with an address space

I do have some other test cases that are working for me, including the ones from http://cgit.freedesktop.org/~tstellar/opencl-example/
Comment 1 Tom Stellard 2013-09-03 14:47:13 UTC
I'm having a little trouble figuring out the build system for this suite, could you pick one of the failing examples and give instructions for how to build and execute it?

Also, what version of Mesa and LLVM are you using?  I recommend using the development versions of both for best results.
Comment 2 Nat Tuck 2013-09-04 16:17:14 UTC
This should build and run the EP benchmark:

make veryclean
make ep CLASS=A
cd bin
./run_ocl_gpu.sh ep A

If that doesn't work, you might have to edit config/make.def first to make it link to -lOpenCL.
Comment 3 Tom Stellard 2013-10-03 21:49:08 UTC
It looks the EP test is failing, because the compiler doesn't support double operations yet.  I'm guessing the other tests are failing for the same reason.

Adding support for doubles is relatively straight forward.  If you are interested in working on this, let me know and I can help give you some pointers.
Comment 4 Vedran Miletić 2015-12-21 12:55:07 UTC
Nat, does this bug still occur?
Comment 5 Jan Vesely 2017-07-28 21:05:11 UTC
(In reply to Vedran Miletić from comment #4)
> Nat, does this bug still occur?

All NAS benchmarks require cl_khr_fp64, so they won't run on pre GCN hw any time soon.
Comment 6 GitLab Migration User 2019-09-18 19:05:36 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/462.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.