A followup — you can also set CHPL_HWLOC_MORE_CFG_OPTIONS in your environment
and do the hwloc rebuild like this:
export CHPL_HWLOC_MORE_CFG_OPTIONS=--disable-cuda
make -C third-party/hwloc clean all
This will be more convenient if you expect to be (re)building Chapel very much.
greg
On Feb 15, 2017, at 8:35 AM, Greg Titus <[email protected]<mailto:[email protected]>>
wrote:
Ah, that looks like the hwloc build decided that CUDA was available and
configured hwloc to use it. But then when the qthreads build was running its
little test cases for configuration it didn’t know that it needed to link in
the CUDA library. Do you need CUDA for your Chapel work? If not then probably
the easiest way to solve this is to rebuild the Chapel hwloc package without
CUDA support, like this (from $CHPL_HOME):
make -C third-party/hwloc CHPL_HWLOC_MORE_CFG_OPTIONS=--disable-cuda clean all
Then just run your full Chapel make again. There’s no need to ‘make clean’
anything else — everything built before hwloc won’t depend on it and the things
built after it will rebuild appropriately.
If you do need CUDA with Chapel I expect I’ll have to pass you off to someone
else with experience making the two work together. I haven’t done that myself.
greg
On Feb 14, 2017, at 9:56 PM, Tomsy Paul
<[email protected]<mailto:[email protected]>> wrote:
The last error reported is at line 4436
configure:26690: error: Specified topology library (hwloc) does not work.
Before that at line 4142,
topology-cuda.c:(.text+0x222): undefined reference to `cudaGetDeviceProperties'
topology-cuda.c:(.text+0x40d): undefined reference to `cudaGetDeviceCount'
topology-cuda.c:(.text+0x4a1): undefined reference to `cudaGetDeviceProperties'
collect2: error: ld returned 1 exit status
I am attaching the config.log.
On Tue, Feb 14, 2017 at 8:26 PM, Greg Titus <[email protected]> wrote:
Hi —
The last part of config.log just quotes all the settings. An error, if one is
reported, would be before that list of #defines. What you’re looking for would
be a place where it shows a (quite small) C test case, and then the result of
compiling and perhaps linking it.
greg
> On Feb 13, 2017, at 9:41 PM, Tomsy Paul <[email protected]> wrote:
>
> Dear Greg,
>
> This is the tail of
> /home/tomsy/Downloads/chapel-1.14.0/third-party/qthread/build/linux64-gnu-native-flat/config.log
>
> #define QTHREAD_STACK_ALIGNMENT 16
> #define HAVE_SC_CLK_TCK 1
> #define HAVE_LINUX_MMTIMER_H 1
> #define HAVE_SYS_IOCTL_H 1
> #define HAVE_SYS_MMAN_H 1
> #define QTHREAD_DEFAULT_STACK_SIZE 4096
> #define QINLINE inline
> #define HAVE_HWLOC_H 1
>
> configure: exit 1
>
> I don't find any error report here. Please look into it.
>
> By the way, I have cuda installed on my system. Is there any compatibility
> issues with chapel?
>
> On Thu, Feb 9, 2017 at 9:34 PM, Greg Titus <[email protected]> wrote:
> Good morning —
>
> This happening in the qthreads configuration step. The log file for that
> should be here:
> /home/tomsy/Downloads/chapel-1.14.0/third-party/qthread/build/linux64-gnu-native-flat/config.log
>
> Somewhere near the end of that file you should be able to find more details
> about the qthreads configuration test that went wrong. Do you see anything
> like that?
>
> greg
>
>
>> On Feb 9, 2017, at 1:19 AM, Tomsy Paul <[email protected]> wrote:
>>
>> Hello,
>>
>> I was making chapel in Ubuntu 16.04. I came across the following error.
>>
>> checking for library containing hwloc_topology_init... no
>> configure: error: Specified topology library (hwloc) does not work.
>> Makefile:97: recipe for target 'qthread-config' failed
>> make[4]: *** [qthread-config] Error 1
>> Makefile:109: recipe for target
>> '/home/tomsy/Downloads/chapel-1.14.0/third-party/qthread/install/linux64-gnu-native-flat'
>> failed
>> make[3]: ***
>> [/home/tomsy/Downloads/chapel-1.14.0/third-party/qthread/install/linux64-gnu-native-flat]
>> Error 2
>> Makefile:62: recipe for target 'third-party-pkgs' failed
>> make[2]: *** [third-party-pkgs] Error 2
>> Makefile:74: recipe for target 'runtime' failed
>> make[1]: *** [runtime] Error 2
>> Makefile:57: recipe for target 'comprt' failed
>> make: *** [comprt] Error 2
>>
>> I went through the mailing list for a similar one.
>>
>> https://sourceforge.net/p/chapel/mailman/message/35480888/
>>
>>
>> There it was suggested to upgrade to Chapel 1.14.
>>
>>
>> Now I am using Chapel 1.14. Is it something associated with the hardware
>> platform?
>>
>> (I had no issue with my Desktop at home and my Laptop. Now I am using a
>> Desktop at my Institute where the issue occurred.)
>>
>> By the way, making succeeds if I set CHPL_HWLOC to none
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org!
>> http://sdm.link/slashdot_______________________________________________
>> Chapel-bugs mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/chapel-bugs
>
>
<config.log>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org<http://SlashDot.org>!
http://sdm.link/slashdot_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs