MATLAB Parallel Computing Toolbox - Parallelization vs GPU?

I'm working with someone who has some MATLAB code that they want to be sped up. They are currently trying to convert all of this code into CUDA to get it to run on a CPU. I think it would be...

Cuda: error C2065:"threadIdx':undeclared identifier

I am trying to create a Cuda project in VisualStudio 2010. I have created one simple test .cu file which takes an array and adds 1 to all its element and sends the result back to the host. I have...

visibility:hidden vs display:none vs opacity:0

I'm currently starting on an animation project. In the project I'll have more than 40000 divs and animate them iteratively. If any of divs are in passive state (i.e. it's not animating at least...

When to use volatile with shared CUDA Memory

Under what circumstances should you use the volatile keyword with a CUDA kernel's shared memory? I understand that volatile tells the compiler never to cache any values, but my question is about...

OpenCL code 'Error MSB3721' for Intel OpenCL SDK on Visual Studio 2010

I am currently using Intel's OpenCL SDK platform for heterogeneous parallel programming (OpenCL). I am using Visual Studio 2010 Ultimate for this. My system doesn't have any GPU in it. I have...

_XReply() terminates app with _XIOError()

We're developing some complexed application which consists of linux binary integrated with java jni calls (from JVM created in linux binary) from our custom made .jar file. All gui work is...

Code for Julia set always generates a grey image in CUDA C

I've written the following code for generating a Julia set fractal in CUDA C/C++ with some help from online sources. I've been trying for hours now, but I'm unable to figure out as to why this...

Why three.js pointcloud is not same rendering between mac and windows (Intel HD graphics 4000)?

I'm developing Huge PointCloud Viewer(over 10millions) using Three.js. But, I got a strange result - not same rendering between mac and windows. below figure is on Mac On Mac, and next figureOn...

How can I solve error "allocation exceeds 10 of system memory" on keras?

I made a CNN on Keras with Tensorflow backend, my training set has 144 examples, but each example has size of 3200*101. My CNN is very basic, just for learning, batch_size of 2 (I tried reducing...

Can't find kaggle.json file in google colab

I'm trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their...

how to run chromedp in docker

I am trying to run chromedp in docker. My main.go: package main import ( "context" "log" "time" "github.com/chromedp/chromedp" ) func main() { log.SetFlags(log.LstdFlags |...

OSError: SavedModel file does not exist at: ../dnn/mpg_model.h5/{saved_model.pbtxt|saved_model.pb}

** code editor: vscode cmd: anaconda prompt I followed the tutorial but why this error? ** first error was ModuleNotFoundError: No module named 'tensorflow' but i make env and install it second...

Error "Keras requires TensorFlow 2.2 or higher"

I just installed Visual Studio 2019 and Tensorflow, but I cannot import Keras because I get the following error message: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip...

Sometimes get the error "err == cudaSuccess || err == cudaErrorInvalidValue Unexpected CUDA error: out of memory"

I'm very lost on how to solve my particular problem, which is why I followed the getting help guideline in the Object Detection API and made a post here on Stack Overflow. To start off, my goal...

pytorch code sudden fails on colab with NVIDIA driver on your system is too old

I had some code which worked on colab (gpu runtime) just a short while ago. Suddenly I am getting The NVIDIA driver on your system is too old (found version 10010). nvcc shows Cuda compilation...

Selenium Unable to locate element only when using headless chrome (Python)

I just started learning Selenium and need to verify a login web-page using a jenkins machine in the cloud, which doesn't have a GUI. I managed to run the script successfully on my system which has...

How to efficiently run multiple Pytorch Processes / Models at once ? Traceback: The paging file is too small for this operation to complete

Background I have a very small network which I want to test with different random seeds. The network barely uses 1% of my GPUs compute power so i could in theory run 50 processes at once to try...

EXC_BAD_ACCESS on VNSequenceRequestHandler

The following code uses the Vision and AVFoundation frameworks to enable face tracking on the built-in camera on macOS. In some circumstances the code crashes due to EXC_BAD_ACCESS (code=2) on a...

If I Trace a PyTorch Network on Cuda, can I use it on CPU?

I traced my Neural Network using torch.jit.trace on a CUDA-compatible GPU server. When I reloaded that Trace on the same server, I could reload it and use it fine. Now, when I downloaded it onto...

docker-compose v3.7. How to give access to GPU for service

I have docker-compose.yml file with configuration of my application. One of the services needs access to the GPU. I built the container separately and using the command docker run -it --gpus=all...

How to Log Metrics (eg. Validation Loss) To TensorBoard when using Pytorch Lightning?

I am using Pytorch Lightning to train my models (on GPU devices, using DDP) and TensorBoard is the default logger used by Lightning. My code is setup to log the training and validation loss on...

module 'tensorflow.python.keras.backend' has no attribute 'slice'?

I am trying to implement https://github.com/ec-jrc/GHS-S2Net this project (in google colab). A week ago it was working by installing the requirements: !pip install tensorflow-gpu==2.0.0 !pip...

How to configure slurm on ubuntu 20.04 with minimum requirements?

I am trying to set-up configuration file on Ubuntu 20.04. I have tried several thing and searched for errors on other websites (link1, link2, link3) and slurm-website as well. Another similar...

Cannot compile mediapipe via Mac OS on Android

I'm trying to build mediapipe project for the first time, reading through https://google.github.io/mediapipe/getting_started/android.html, and can't get bazel to complete successfully, so far...

Using a proxy with selenium and ruby

I'm trying to get selenium make request through a proxy server but I can't seem it get it working. This bit of code gets a response but isn't using the proxy Selenium::WebDriver.logger.level =...

CUDA error: device-side assert triggered on Colab

I am trying to initialize a tensor on Google Colab with GPU enabled. device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') t = torch.tensor([1,2], device=device) But I am getting...

Using spacy v3 which parameter should I change in the config file to resolve CUDA out of memory problem ? batch_size vs max_length vs batcher.size

Using spacy v3, I try to train a classifier using camemBert and got CUDA out of memory problem. To resolve this issue I read that I should decrease the batch size but I'm confused which parameter...

Alphafold core dumped

I installed Alphafold algorithm as suggested by https://github.com/kuixu/alphafold However I am getting the following errors: I0826 12:08:54.630447 139693760276288 xla_bridge.py:236] Unable to...

Python quits silently upon importing tensorflow, no error/logs

I currently have a problem with tensorflow that I've been stuck with for almost 2 weeks now. No matter what Python script I run, every time tensor flow is imported import tensorflow Python just...

Getting "RuntimeError: CUDA error: out of memory" when memory is free

I'm trying to run a test code on GPU of a remote machine. The code is import torch foo = torch.tensor([1,2,3]) foo = foo.to('cuda') I'm getting the following error Traceback (most recent call...