How to program number of your threads in Delphi

I found this on the Dr Dobbs site today at http://www.ddj.com/hpc-high-performance-computing/220300055?pgno=3 It's a nice suggestion regarding thread implmentation. What is best way of achieving...

OpenMP: poor performance of heap arrays (stack arrays work fine)

I am a fairly experienced OpenMP user, but I have just run into a puzzling problem, and I am hopeful that someone here could help. The problem is that a simple hashing algorithm performs well for...

C OpenMP parallel bubble sort

I have an implementation of parallel bubble sort algorithm(Odd-Even transposition sort) in C, using OpenMP. However, after I tested it it's slower than the serial version(by about 10%) although I...

How to install pytorch in Anaconda with conda or pip?

I am trying to install pytorch in Anaconda to work with Python 3.5 in Windows. Following the instructions in pytorch.org I introduced the following code in Anaconda: pip3 install torch torchvision...

jupyter notebook ipython widgets display as text

A colleague (and myself) are trying to write some python scripts to do some common calculation which will also need to be used by our other colleagues. In order to make these scripts easy to use...

Installing PyTorch under conda fails with permissions error and Rolling back transaction

I'd like to use PyTorch in a Python program. The instructions for installing it require conda. After installing Conda I ran: >conda install -c pytorch pytorch (as instructed on the PyTorch...

ModuleNotFoundError: No module named 'pyarrow'

I am trying to run a simple pandas UDF example on my server. From here I have created a fresh environment just for the purpose of running this code. (PySparkEnv) $ conda list # packages in...

PyTorch Cuda with anaconda not available

I'm using anaconda to regulate my environment, for a project i have to use my GPU for network training. I use pytorch for my project and i'm trying to get CUDA working. I installed cudatoolkit,...

OpenMP: "libgomp: Thread creation failed: Resource temporarily unavailable" when code run as regular user

When I run the following example code: #include "stdio.h" #include <omp.h> int main(int argc, char *argv[]) { #pragma omp parallel { int NCPU,tid,NPR,NTHR; /* get the total number of...

Class declaring itself (*this) private to avoid race conditions / quest for threadprivate in gcc abandoned

I want to avoid a race condition in parallel code. The issue is that my class contains several global variables, let's say just one x for simplicity as well as a for loop that I wish to make...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

How to use (/install) the pardiso linear solver in ipopt using the pyomo modelling framework?

I am developing an optimization model using pyomo with python (python 3 - i manage packages with anaconda on windows). I need to use a non-linear solver, ipopt. It seems that the default linear...

Conda downgrade numpy version

I need to downgrade numpy version: python -c "import numpy; print(numpy.__version__)" 1.16.4 conda install numpy==1.14.3 Collecting package metadata (current_repodata.json): done Solving...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

HDF5 library version error - HDF5 ver 1.10.4

I'm trying to import some packages with spyder (OS x64), Anaconda and pyton 3.x The error is pretty famous in the internet. The solution proposed is to match the version of the library 1.10.5 with...

"Verifying transaction: failed" Error in updating anaconda form anaconda prompt

I had been updating anaconda form "anaconda Prompt", i got following error i could not resolve the error can anyone please help me to resolve it Downloading and Extracting Packages libxslt-1.1.33 ...

Running numpy using anaconda and VS Code

I am trying to get VScode to work with anaconda but having issues with numpy. I have managed to get VScode to use the right python environment From VScode (ctrl+shift+P, type Python:Select...

OpenMP linking errors in Visual Studio 2019 LLVM

I've been trying to build an OpenMP sample program with an LLVM compiler integrated to Visual Studio 2019. LLVM compiler was downloaded from here (version 10.0, win64), C:\Program Files\LLVM\bin...

/usr/bin/ld: cannot find -lnetcdf?

First of all, this is my first question on here. If I make mistake, I'm sorry about that. By the way I'm a newbie in Fortran. I want to compile the "MMIF" model and the model has a compiler...

Error in Power BI while importing pandas library in python scrip

Below are the mentioned error while importing pandas library in Power BI in python script. Details: "ADO.NET: Python script...

virtualenv: pre-installed with packages on creating virtual environment

I created a virtual environment using command virtualenv env on my terminal. On using pip freeze > requirements.txt after activating the virtual environment, I was a bunch of packages...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

Error running python script into Power BI: Unable to import required dependencies: Numpy

I recently installed Anaconda into my system (Win10) and created a virtual environment in conda to install several packages and dependencies with the intention to connect it to Power BI, so I can...

Stable Baselines: DQN Not performing properly?

I have problem in using DQN for a diagonal line and sin wave as price fluctuation. When the price goes up, there will be a reward and it is colored as green in the chart. When the price goes down...

Conda - how to update only cudatoolkit in an existing environment?

This is a specific instance of a general problem that I run into when updating packages using conda. I have an environment that is working great on machine A. I want to transfer it to machine...

opencv dnn module with OpenVino

I have no problems when working with dnn module But I have downloaded OPENVINO to use dnn with engine inference, and I can't load the opencv_dnn452d.dll library When I go to the opencv...

_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIdEEPKNS_6detail12TypeMetaDataEv

What is the reason for this error and how can I fix it? I am running the code from this repo: https://github.com/facebookresearch/frankmocap (frank) [email protected]:~/research/code/frankmocap$ python -m...

Sudden Tensorflow / Keras Google Colab dependency problems `AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'`

I have running a machine learning model (Matterport's Mask R-CNN) in google colab for a couple of weeks. All of a sudden today I am unable to run any of my notebooks due to I think some kind of...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...