Comments (4)
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.
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.
This should have stayed open - this is a PR in process
from cntk.
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)
- Value goes invalid when using TestMinibatch
- Request for a no-opencv dotnet release
- CNTK C# Crash when layer is deeper
- Convolution 1D CNTK C++ HOT 1
- Add support to release linux aarch64 wheels
- Error while deploying MS Teams Bot with SSO
- how to install in python3.8 HOT 1
- A model causes CNTK crash with cudnnSetPoolingNDDescriptor when invoking the pooling operator
- This repo is missing important files HOT 1
- API document issue due to syntax in source code HOT 1
- Error: could not find all specified 'to_nodes' in clone. Looking for ['relu5'], found [None]
- SequenceClassification.py does not work out of box HOT 1
- Microsoft has absolutely no potential
- development of a neural network for object search
- join vcpkg
- cntk crash and pycharm process finished with exit code -1066598274 (0xC06D007E)
- ConvolutionTranspose2D outputs normally when num_filters is tuple and dilation is 0
- program crash when get gradient of `ConvolutionTranspose2D`
- when shape contains negative integer, input_variable should throw an error HOT 1
- MAX_POOLING crash, when pooling_window_shape contains 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cntk.