Giter Club home page Giter Club logo

Comments (4)

frankseide avatar frankseide commented on May 9, 2024

We probably also want to change the lock file name to something without DBN.exe in the name, as that was meant to allow coexistence of CNTK on a single server with an old internal Windows-only tool that is no longer in use.

from cntk.

nslay avatar nslay commented on May 9, 2024

How about using an environment variable?

CrossProcessMutex(const std::string& name)
    : m_fd(-1)
{
  const char * const envLockDir = getenv("CNTK_LOCK_DIR");
  if (envLockDir != NULL)
    m_fileName = envLockDir + ('/' + name);
  else
    m_fileName = "/var/lock/" + name;
}

If you insist on a setting in the configuration file, that could simply use putenv to expose this variable to CrossProcessMutex.

EDIT:
I personally would like an environment variable since write-access local storage may depend on a job ID or similar. This would save me the trouble having to sed/awk the config file to update a setting. Instead I can export a variable. See for example:
https://hpc.nih.gov/docs/b2-userguide.html#local

from cntk.

wolfma61 avatar wolfma61 commented on May 9, 2024

This should have stayed open - this is a PR in process

from cntk.

timolohrenz avatar timolohrenz commented on May 9, 2024

even after the latest news, this would be a mandatory feature for all users which have no access to /var/lock.

As far as I can see, the solution with the environment variable never made its way into a release. Maybe reopen?

from cntk.

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.