Mongo C++ driver Ver 3.3.1 and Mongo C Driver compatibility? - mongo-cxx-driver

The page about the latest version of C++ Driver says:
Please note that this version of mongocxx requires the MongoDB C driver 1.10.1.
Should I get this literally? I'm asking because the latest version of C Driver is 1.13.0... should I rollback to 1.10.1?

Related

getCudaEnabledDeviceCount() returning -1 : OpenCV [cuda] built with vcpkg

Building an OpenCV CUDA app on win10 with MSVC 2017 using the opencv[cuda] package installed by vcpkg. To check for usable devices, I call getCudaEnabledDeviceCount() and it returns -1, which OCV documents as meaning cuda support is enabled but the CUDA driver is incompatible.
Re-installing opencv[cuda] with vcpkg did not help.
Can you suggest a way to diagnose or fix?
Answer: The machine is an old gaming laptop whose most recent recommended nVidia display driver is 425.31. I had recently installed CUDA toolkit 10.2, whose runtime is actually incompatible with that driver. Rolling back to toolkit 10.1 resolved the problem.

Dart Aqueduct which version to use?

Im having Dart SDK 2.10.4
Aqueduct in version 3.3.1
but for me it seems that those two don't work together well, e.g. do not connect to Postgres...
When i downgrade Dart to 2.7.2 the DB connection works fine, but im getting an error "Can't load Kernel binary: Invalid kernel binary format version."
Can someone tell which versions they successfully use?

cytoscape system checker fails on mac catalina

I have installed oracle jdk and updated java (java 8 update 251). The system checker still fails.
############# Cytoscape System Requirements Checker for Mac ##############
Target Cytoscape version: 3.7.2
Your shell is zsh
Compatible OS version found: 10.15
- Pass: OS Version = 10.15.4
- Pass: Following Oracle JDK found:
/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk
Fail: Java is not reachable.
Try re-installing Java 8.```
Couple of things jump out at me. First, Cytoscape 3.8.0 is the current release, so I would try installing that, and second, Cytoscape 3.8.0 requires Java 11. Can you give those two things a try and then let us know if the install goes well.
Thanks!
-- scooter

Can I run a Docker container with CUDA 10 when host has CUDA 9?

Im deploying an application in a docker container that requires CUDA 10. This is necessary to run some of the underlying pytorch functionality that the application uses.
However, the host server is running docker ce 17, Nvidia-docker v 1.0 with CUDA version 9, and I will not be able to upgrade the host.
I’m under the impression that I’m handcuffed to the v1 nvidia docker runtime and CUDA version available on the host.
Is there a way to run CUDA 10 on the container so I can leverage the functionality of this toolkit?
In the general case, any specific CUDA version will require a minimum GPU driver version. That is covered in places like here and here (table 1). So to use CUDA 9.0 you would need at least a GPU driver version that supports CUDA 9.0, such as a R384 driver. To use CUDA 10.0 you would need at least a GPU driver version that supports CUDA 10.0, such as a R410 driver.
The usage of containers doesn't fundamentally change this. If you want to use a container that has CUDA 10 code in it, your base machine needs a driver that supports CUDA 10.
NVIDIA did start publishing compatibility libraries that allow modifications to the above statements. These compatibility libraries are available but not installed by default with a CUDA toolkit install. These compatibility libraries only work in certain cases, and they have certain requirements to be usable. The compatibility libraries are documented here.
One of the specific requirements for use of these compatibility libraries is that the GPU(s) in use must be Tesla-brand GPUs. GeForce, Quadro, Jetson, and Titan family GPUs are not supported by these compatibility libraries.
Furthermore, the libraries only work with certain combination of CUDA toolkit versions, and GPU driver versions installed on the base machine. This "compatibility matrix" is documented here (Table 3). Only the specific combinations of CUDA toolkit versions with installed driver versions will be usable for compatibility. To pick one example, if you wish to use CUDA 10.0, and your base machine has a Tesla GPU with a R396 driver installed, there is no compatibility support. In the same setup, however, if you wish to use CUDA 10.1, there is compatibility support for that.
If you have satisfied the requirements for compatibility usage, then the remaining step would be to install the compatibility libraries (or build your container from a base container that has the compatibility libraries already installed).
For a package manager CUDA install method, the method to install the compatibility libraries is simple (example on Ubuntu, installing the CUDA 10.1 compatibility to match CUDA 10.1 toolkit install):
sudo apt-get install cuda-compat-10.1
Make sure to match the version to the CUDA toolkit version that you are using (that you installed with the package manager method, or that was already installed in your container).
This compatibility "path" only began in the CUDA 9.0 timeframe. Systems that are equipped with drivers that predate CUDA 9.0 will not be usable in any way for this compatibility path. There are also various functional limitations and restrictions, which are covered in the documentation.
When this "compatibility path" is correctly installed and in use, the overall system configuration can "appear" to be violating the rules indicated at the top of this answer. For example a CUDA 10.1 application could possibly be running on a machine that had only a R396 driver installed.
For the specific question in view here, OP eventually indicated that the base machine had a Quadro GPU, so this "compatibility path" does not apply, and the only way to run e.g. a CUDA 10.0 container would be if a CUDA 10.0-capable driver is installed in the base machine, e.g. R410 or later driver.

F# code porting from windows to ubuntu

I am windows developer and trying to write a program on ubuntu in F#
I have ubuntu 16.04 and I am following video https://channel9.msdn.com/Events/Build/2016/T661
I have installed dotnet-dev-1.0.0-preview2.1-003177
Now I am able to do a small hello world program in C#
But when I follow steps from above video I get error when I do 'dotnet run'
"
The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/shared/Microsoft.NETCore.App
- The following versions are installed:
1.1.0
- Alternatively, install the framework version '1.0.0'.
"
Also one thing I observed is I don't have 'Nuget.config' like the video shows.
I have below questions:
How to resolve above query
Is there any tutorial available for development of f# on ubuntu either using .net core or mono as finally I would like to port my Actor model akka.net code from windows to ubuntu.
Regards,
Amit Bhagwat

Resources