-
Notifications
You must be signed in to change notification settings - Fork 41
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
Running CTest failed - include failed #10
Comments
It seems that the CLRNG_ROOT environment variable is not access correctly by the software, or that your CLRNG_ROOT is a shell variable not exported to environment. |
Merci David! :-) Bon weekend. On 7/15/2016 5:20 PM, David Munger wrote:
Pierre L'Ecuyer, Professeur Titulaire |
Sure would love to. Will be a Ph.D student in UMontreal too this Fall 2016 :) |
Hi, has this problem been solved? When I tested it on my Mac (with Iris Graphics 6100), it said: $CLRNG_ROOT/bin/CTest |
Make sure your CLRNG_ROOT environment variable is exported and set properly. If you can't get that to work, try copying the dylibs into the same directory as the executable. You may need to make sure your LD_LIBRARY_PATH is properly set in this case. |
I think I solved the problem partly by copying the source codes (include and lib files) directly to the folder where your project lies and change the necessary include statements in those files. It is not a smart method but very efficient. Finally, don't forget to add "#pragma OPENCL EXTENSION cl_khr_fp64 : enable" in your codes because you want a double floating-point precision support. |
I resolved the problem by copying include/* and lib64/* to /usr/local/include and /usr/local/lib, -- Using OpenCL platform: Apple
OpenCL 1.2 (Oct 14 2016 20:26:22)
-- Using OpenCL device: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
OpenCL 1.2
SUCCESS 11 tests - Mrg31k3p successive states
SUCCESS 10 tests - Mrg31k3p clrngRandomU01() [double]
SUCCESS 5 tests - Mrg31k3p clrngCreateStreams()
SUCCESS 50 tests - Mrg31k3p clrngRewindStreamCreator()
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(0,2)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(1,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(2,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(0,30)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,30)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,-30)
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(0,100) [double]
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(12345,23456) [double]
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(0,1073741824) [double]
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(0,2)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(2,0)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(0,30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,0)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(5,-31)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,-30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(-10,1030)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(-5,50)
SUCCESS 50 tests - Mrg31k3p clrngRewindStreams()
SUCCESS 5 tests - Mrg31k3p clrngForwardToNextSubstreams() [clrngAdvanceStreams()]
SUCCESS 64 tests - Mrg31k3p clrngMakeSubstreams()
SUCCESS 1 test - Mrg31k3p combined operations [float]
SUCCESS 1 test - Mrg31k3p combined operations [double]
SUCCESS 101376 tests - Mrg31k3p device operations (3,1024,32,0) [float]
build log:
========================================
In file included from <program source>:3:
In file included from /Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/mrg31k3p.clh:155:
/Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/private/mrg31k3p.c.h:234:14: error: passing '__constant cl_uint (*)[3]' to parameter of type 'cl_uint (*)[3]' changes address space of pointer
modMatVec (clrngMrg31k3p_A1p72, streams[k].substream.g1, streams[k].substream.g1, mrg31k3p_M1);
^~~~~~~~~~~~~~~~~~~
/Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/./private/modular.c.h:79:44: note: passing argument to parameter 'A' here
static void modMatVec (MODULAR_NUMBER_TYPE A[N][N], MODULAR_NUMBER_TYPE s[N], MODULAR_NUMBER_TYPE v[N], MODULAR_NUMBER_TYPE m)
^
In file included from <program source>:3:
In file included from /Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/mrg31k3p.clh:155:
/Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/private/mrg31k3p.c.h:235:14: error: passing '__constant cl_uint (*)[3]' to parameter of type 'cl_uint (*)[3]' changes address space of pointer
modMatVec (clrngMrg31k3p_A2p72, streams[k].substream.g2, streams[k].substream.g2, mrg31k3p_M2);
^~~~~~~~~~~~~~~~~~~
/Users/yuuji/private/lib/clRNG.build/package/./include/clRNG/./private/modular.c.h:79:44: note: passing argument to parameter 'A' here
static void modMatVec (MODULAR_NUMBER_TYPE A[N][N], MODULAR_NUMBER_TYPE s[N], MODULAR_NUMBER_TYPE v[N], MODULAR_NUMBER_TYPE m)
^
<program source>:4:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring
#pragma OPENCL EXTENSION cl_amd_printf : enable
^
<program source>:5:26: warning: unknown OpenCL extension 'cl_amd_fp64' - ignoring
#pragma OPENCL EXTENSION cl_amd_fp64 : enable
^
========================================
Error -11: cannot build program |
hello @michael-yuji were you able to solve the problem? |
C02QH2D7G8WM:package userone$ $CLRNG_ROOT/bin/CTest
-- Using OpenCL platform: Apple
OpenCL 1.2 (Feb 7 2016 15:43:50)
-- Using OpenCL device: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
OpenCL 1.2
SUCCESS 11 tests - Mrg31k3p successive states
SUCCESS 10 tests - Mrg31k3p clrngRandomU01() [double]
SUCCESS 5 tests - Mrg31k3p clrngCreateStreams()
SUCCESS 50 tests - Mrg31k3p clrngRewindStreamCreator()
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(0,2)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(1,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(2,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(0,30)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,0)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,30)
SUCCESS 10 tests - Mrg31k3p clrngChangeStreamsSpacing(10,-30)
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(0,100) [double]
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(12345,23456) [double]
SUCCESS 30 tests - Mrg31k3p clrngRandomInteger(0,1073741824) [double]
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(0,2)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(2,0)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(0,30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,0)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(5,-31)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(10,-30)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(-10,1030)
SUCCESS 10 tests - Mrg31k3p clrngAdvanceStreams(-5,50)
SUCCESS 50 tests - Mrg31k3p clrngRewindStreams()
SUCCESS 5 tests - Mrg31k3p clrngForwardToNextSubstreams() [clrngAdvanceStreams()]
SUCCESS 64 tests - Mrg31k3p clrngMakeSubstreams()
SUCCESS 1 test - Mrg31k3p combined operations [float]
SUCCESS 1 test - Mrg31k3p combined operations [double]
build log:
:2:10: fatal error: 'clRNG/mrg31k3p.clh' file not found
include <clRNG/mrg31k3p.clh>
Error -11: cannot build program
The text was updated successfully, but these errors were encountered: