Coder Social home page Coder Social logo

Comments (12)

antonio-mastropaolo avatar antonio-mastropaolo commented on May 29, 2024 4

@ALL

I just tried from on a fresh virtual machine(ubuntu 64-bit), and it worked smoothly!
Even if I still get this message
"
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
.........
"
now the script writes all the files I need.
TBH, I don't know what happened before.
Anyway Thank you all for your time :)

from astminer.

vovak avatar vovak commented on May 29, 2024

hi @antonio-mastropaolo, thank you for the report. I'll have a look asap.

from astminer.

vovak avatar vovak commented on May 29, 2024

@antonio-mastropaolo could you please confirm if there is still output in results/c regardless of the error?

from astminer.

antonio-mastropaolo avatar antonio-mastropaolo commented on May 29, 2024

@vovak Yes, but they're empty

from astminer.

vovak avatar vovak commented on May 29, 2024

Looks like the reason is either the error in the last line, which is not related to slf4j, or other problems with the C parser. Could you please share the output of java --version in your environment?

from astminer.

antonio-mastropaolo avatar antonio-mastropaolo commented on May 29, 2024

Ook I see, this is the java version I have:

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

from astminer.

vovak avatar vovak commented on May 29, 2024

Thanks. Would it be an option for you to share a (minimal) example of input where it fails? It works fine in my environment (Catalina, openjdk15) with a sample input. I build astminer from master-dev before running ./cli.sh

from astminer.

antonio-mastropaolo avatar antonio-mastropaolo commented on May 29, 2024

@vovak Yep sure. Here the sample I'm trying to make it works

int sim_lifted_irk_integrator_calculate_args_size(sim_dims *dims, void *submodules_)
{
    sim_lifted_irk_integrator_submodules *submodules = (sim_lifted_irk_integrator_submodules *) submodules_;

    int size = sizeof(sim_lifted_irk_integrator_args);

    int ns = dims->num_stages;
    size += ns * ns * sizeof(double);  // A_mat
    size += ns * sizeof(double);  // b_vec
    size += ns * sizeof(double);  // c_vec

    size += sizeof(Newton_scheme);

    make_int_multiple_of(8, &size);

    size += ns * sizeof(double);  // eig

    size += ns*ns * sizeof(double);  // transf1
    size += ns*ns * sizeof(double);  // transf2
    size += ns*ns * sizeof(double);  // transf1_T
    size += ns*ns * sizeof(double);  // transf2_T

    size += 2*sizeof(external_function_fcn_ptrs);
    size += submodules->forward_vde.calculate_args_size(&sim_lifted_irk_forward_vde_dims, NULL);
    size += submodules->jacobian_ode.calculate_args_size(&sim_lifted_irk_jacobian_ode_dims, NULL);

    make_int_multiple_of(8, &size);
    size += 2 * 8;

    return size;
}

I also want to ask you, if we need to import all the dependencies or we can discard them.
For example, in the example I post above _ make_int_multiple_of_ is not defined.
Can be this a problem?

Thank you for your time :)

from astminer.

vovak avatar vovak commented on May 29, 2024

hi @antonio-mastropaolo,

Importing the dependencies is not necessary, as code is merely parsed for paths extraction.
When I place the snippet above to results/prep/example.c and run the cli.sh command with arguments just as you've provided, it works, and the output looks OK.

It's a classic it-works-on-my-machine, but I'd love to help you get it to work.

What OS do you use?

from astminer.

antonio-mastropaolo avatar antonio-mastropaolo commented on May 29, 2024

hi @vovak

I really appreciate your help :)
I'm using macOS Big Sur 11.1. FYI I've already tried on another machine(ubuntu) and got the same problem.
At this stage, my only guess is that it could be something related to the java version.

I'm using openjdk 15 2020-09-15

from astminer.

egor-bogomolov avatar egor-bogomolov commented on May 29, 2024

Hi @antonio-mastropaolo! Wild guess, what is the path to the file that you're trying to parse?

from astminer.

vovak avatar vovak commented on May 29, 2024

@antonio-mastropaolo great! Please let us know if you encounter it again.

from astminer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.