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

Running CTest failed - include failed #10

Open
dendisuhubdy opened this issue Apr 6, 2016 · 8 comments
Open

Running CTest failed - include failed #10

dendisuhubdy opened this issue Apr 6, 2016 · 8 comments

Comments

@dendisuhubdy
Copy link

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

@mungerd
Copy link
Contributor

mungerd commented Jul 15, 2016

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.
When developing clRNG, we did not have access to OS X to test it and make the necessary adaptations. You are welcome to contribute fixes for OS X. I would suggest to start by examining the clrngGetLibraryDeviceIncludes() function in library/clRNG.c.

@pierrelecuyer
Copy link

Merci David! :-) Bon weekend.

On 7/15/2016 5:20 PM, David Munger wrote:

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.
When developing clRNG, we did not have access to OS X to test it and
make the necessary adaptations. You are welcome to contribute fixes
for OS X. I would suggest to start by examining the
|clrngGetLibraryDeviceIncludes() function in library/clRNG.c|.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKp1o77y77uwWjKe7GEyrSBr0nft5ySYks5qV_mugaJpZM4IBiCF.Web
Bug from
https://github.com/notifications/beacon/AKp1o1TLUILxxjv2aJsBK3yk1itoXQkvks5qV_mugaJpZM4IBiCF.gif

Pierre L'Ecuyer, Professeur Titulaire
Chaire du Canada en Simulation et Optimisation Stochastique
CIRRELT, GERAD, and DIRO, Université de Montréal, Canada
http://www.iro.umontreal.ca/~lecuyer

@dendisuhubdy
Copy link
Author

Sure would love to. Will be a Ph.D student in UMontreal too this Fall 2016 :)

@tekkamanblade0
Copy link

Hi, has this problem been solved? When I tested it on my Mac (with Iris Graphics 6100), it said:

$CLRNG_ROOT/bin/CTest
dyld: Library not loaded: libclRNG.1.dylib
Referenced from: /Users/water/Documents/vscode/opencl/clRNG.build/package/bin/CTest
Reason: image not found
Abort trap: 6

@kknox
Copy link

kknox commented Nov 28, 2016

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.

@tekkamanblade0
Copy link

tekkamanblade0 commented Nov 30, 2016

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.

@michael-yuji
Copy link

michael-yuji commented Dec 2, 2016

I resolved the problem by copying include/* and lib64/* to /usr/local/include and /usr/local/lib,
after that I set 'export DYLD_LIBRARY_PATH=/usr/local/include:$DYLD_LIBRARY_PATH' and the test can finally find mrg31k3p.clh, after that I ran into another issue.

-- 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

@acrogenesis
Copy link

hello @michael-yuji were you able to solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants