AvtechScientific / ASL

Advanced Simulation Library - hardware accelerated multiphysics simulation platform.
http://asl.org.il
GNU Affero General Public License v3.0
217 stars 55 forks source link

Running locomotive example throws `std::logic_error` #46

Open lgrozinger opened 4 years ago

lgrozinger commented 4 years ago

After building ASL successfully from source, running the example described in the README fails:

~ $ cd src/build-asl/examples/flow/locomotive/
~/src/build-asl/examples/flow/locomotive $ ./asl-locomotive --input locomotive.stl
ASL WARNING: ApplicationParametersManager::load() - no parameters file provided. Using default and/or command line values.
Data initialization... Finished
Numerics initialization... terminate called after throwing an instance of 'std::logic_error'
  what():  ASL ERROR: CommandQueue::enqueueNDRangeKernel() - kernel (-4).
aborted (core dumped)

I first suspected that OpenCL was at fault, but it appears to be working correctly. Some further info:

~ $ asl-hardware
Platform: NVIDIA Corporation
Number of devices: 1
    GeForce GT 730
        type: GPU
        number of compute units: 2
        alignment: 128
        local memory type: CL_LOCAL
        local memory size: 49152
        max item size: 1024
        vector width float: 1
        vector width double: 1
        extension CL_KHR_FP64: 1
        extension CL_KHR_INT64_EXTENDED_ATOMICS: 0
        supported OpenCL version: OpenCL 1.2 CUDA
        OpenCL driver version: 390.116

~ $ lspci -v | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1) (prog-if 00 [VGA controller])

~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic

Is there any advice on this or experience with similar issues?