sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Multiple CPU processes using same GPU model for inference
Labels: module: windows,module: multiprocessing,triaged

Hi guys,

under Windows, how can I use multiple processes, spawned by multiprocessing use the same GPU model for prediction? I am using Python 3.6 and pytorch 1.0.

I read this:
https://pytorch.org/docs/stable/multiprocessing.html#module-torch.multiprocessing
https://pytorch.org/docs/stable/notes/multiprocessing.html

According to this it seems possible: https://github.com/pytorch/pytorch/issues/3871
but under Windows?

According to this it seems it's not possible unter Windows:
https://pytorch.org/docs/stable/notes/windows.html#cuda-ipc-operations

I only want to predict values from the same trained model from multiple spawned CPU processes, but currently I can't make it work.

I get this error:
THCudaCheck FAIL file=c:\a\w\1\s\tmp_conda_3.6_091443\conda\conda-bld\pytorch_1544087948354\work\torch\csrc\generic\StorageSharing.cpp line=232 error=71 : operation not supported

Predictions from MainProcess on GPU is working fine, and multiprocessing on CPU works fine. But my model is pretty large right now (deep learning with residual networks), so I thought it should be easy to predict only on gpu and do the rest on CPU (multiprocess self-play stuff which needs those predictions). 

Can I make this somehow work under windows?

cc @peterjc123
Repository: rust
Issue: Move as much unsafe code as possible out of librustc.
Labels: C-cleanup,T-compiler

I am currently aware of several uses of `unsafe` code (feel free to add more):
* [ ] interning / lifting typesystem entities (in)to `TyCtxt`
  * maybe we can figure out a generalization in the `salsa` ecosystem (cc @nikomatsakis)
* [ ] `ty::List<T>`, which is effectively a `Thin<[T]>`
  * could be moved to `arena` or a crate `arena` can depend on
  * potential crates.io replacement: [`thin-slice`](https://crates.io/crates/thin-slice)
* [ ] `ty::subst::Kind`, which is `ty::subst::UnpackedKind` but pointer-tagged
  * could be generalized to a 1-bit or 2-bit pointer-tagging abstraction
  * potential crates.io replacement: [`tagged_ptr`](https://crates.io/crates/tagged_ptr)

cc @rust-lang/compiler @RalfJung
Repository: godot
Issue: Headless mono build not detecting installed mono libs
Labels: usability,topic:dotnet

**Godot version:**
master, commit b67955afcae7a63a37fba7d046c7217bd8a6c3c3


**OS/device including version:**
Kubuntu 18.04


**Issue description:**
I was following the build instructions for building Godot with mono, but when I run the output executable against my Hello World C# project, I get the following output in my terminal:

> The assembly mscorlib.dll was not found or could not be loaded.
> It should have been installed in the `/media/andrew/UbuntuStorage1/Godot-Mono/godot-master/bin/data_Godot/Mono/lib/mono/4.5/mscorlib.dll' directory.


**Steps to reproduce:**
1. Install mono using the repositories found at https://www.mono-project.com/download/stable/
2. Create a Godot project (using the Mono binary available for download) with a GDScript that calls a simple C# class.  In the C# class, include a Console.write() call to display "Hello World".
3. Follow Godot build instructions at https://docs.godotengine.org/en/latest/development/compiling/compiling_with_mono.html#requirements
4. Run the output Godot executable from step 3 against the project from step 2.

**Minimal reproduction project:**
[HiredGuns.zip](https://github.com/godotengine/godot/files/2849564/HiredGuns.zip)
Repository: vscode
Issue: Split JSON settings editor discussion issue
Labels: settings-editor,under-discussion

So as you can see here:

![image](https://user-images.githubusercontent.com/45121609/52544545-bb849380-2db1-11e9-9d02-f22b8377243a.png)

when I open my `settings.json` file I don't have it split up. Before updating whenever I opened `settings.json` I had all the settings on the left hand side and those changed by me on the right hand side. Now I only have the thing, which was previously on the right.

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.31.0
- OS Version: Windows 10

Steps to Reproduce:

1. Open settings
2. Click `{}` to open `settings.json`

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: deno
Issue: Public API for compilers
Labels: feat,public API

For tracking purposes, please don't work on this without discussing with Ry or myself.

Having a public API that is similar to how we perform TypeScript compilation is a good idea.  It would allow JS->JS transpilation (e.g. those who need Babel custom plugins or Flow) or other languages (e.g. CoffeeScript).

Related to #1738 and some other work in rationalising the compiler APIs internally, but we should be able to support loading a compiler in a web worker and instructing the privileged side what resources should be sent to that runtime compiler.
Repository: vscode
Issue: More flexible input variables: Multiple values & labels
Labels: feature-request,tasks

I love the new input variables feature and was eager to thin out the tasks lists of my projects. Unfortunately, I realized that the mechanism does not suffice for most cases. Items of the `options` array may be cryptic ids and often a choice represents a combination of variables. May I suggest that you support multiple values and, consequently, labels?

Example:

```json
{
  "tasks": [{
    "label": "🐳 Docker build",
    "type": "shell",
    "command": "docker",
    "args": ["build", "-t", "${input:image.tag}", "."],
    "options": {
      "cwd": "${workspaceFolder}/${input:image.context}"
    },
    "problemMatcher": []
  }],
  "inputs": [{
    "id": "image",
    "type": "pickString",
    "description": "Which image to build?",
    "options": [{
      "label": "💵 Billing",
      "value": {
        "tag": "my.azurecr.io/myshop-billing",
        "context": "backend/services/billing"
      }
    }]
  }]
}
```

Valid values might be:

```json
{
  "options": [
    "a string",
    { "value": "with a", "label": ":)" },
    { "label": "with multiple", "value": { "s": "" } }
  ]
}
```
Repository: pytorch
Issue: Seg fault with test_rnn_retain_variables on ppc64le
Labels: module: crash,triaged,module: POWER

## 🐛 Bug

Observed segfault with the test case `test_rnn_retain_variables`:

Other tests that crash are:
```
test_cuda_rnn_fused
test_rnn_initial_hidden_state
test_einsum
```

## To Reproduce

The minimum to code to reproduce is:
```
import torch
import torch.nn as nn
device="cpu"
dtype=torch.double
rnn = nn.GRU(10, 20, num_layers=2).to(device,dtype)
input = torch.randn(5, 6, 10, device=device, dtype=dtype, requires_grad=True)
output = rnn(input)
```
Other observations are:
a. The above code works for `device="cuda"`
b. The above code works for `dtype=torch.float`
c. The above code works if the following is used for input:
`input = torch.randn(3, 3, 10, device=device, dtype=dtype, requires_grad=True)`

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

The tests should pass.

## Environment

```
PyTorch version: 1.0.0a0+7998997 (with some local changes)
Is debug build: No
CUDA used to build PyTorch: 10.0.130

OS: Red Hat Enterprise Linux Server 7.6 (Maipo)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
CMake version: Could not collect

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration:
GPU 0: Tesla V100-SXM2-16GB
GPU 1: Tesla V100-SXM2-16GB
GPU 2: Tesla V100-SXM2-16GB
GPU 3: Tesla V100-SXM2-16GB

Nvidia driver version: 410.72
cuDNN version: Could not collect
```

## Additional context

<!-- Add any other context about the problem here. -->
Repository: godot
Issue: Trying to "get_plugin_name" triggers an error
Labels: usability,topic:plugin

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** 3.1.beta3.official
<!-- Specify commit hash if non-official. -->


**OS/device including version:** Solus 3.9999
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->

![image](https://user-images.githubusercontent.com/10171059/52561497-b0962700-2de2-11e9-8917-ec491447f966.png)

In the documentation there is a method `EditorPlugin.get_plugin_name() -> String` but trying to call said method returns:

![image](https://user-images.githubusercontent.com/10171059/52561527-cc013200-2de2-11e9-8081-6f6ae82d869f.png)

```
Invalid call. Nonexistent function 'get_plugin_name' in base 'EditorPlugin (plugin.gd)'
```

**Steps to reproduce:**
- Create an EditorPlugin
- In the plugin script call `get_plugin_name`

**Minimal reproduction project:**
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: go
Issue: html/template: SGML processing Instructions escaped
Labels: NeedsDecision

Go version `go1.12beta2`.

```go
package main

import (
	"bytes"
	"html/template"
	"log"
	"strings"
)

func main() {
	log.SetFlags(0)
	tmpl, err := template.New("").Parse(`<?PITarget PIContent?>`)
	if err != nil {
		log.Fatal(err)
	}
	var b bytes.Buffer
	tmpl.Execute(&b, nil)

	s := b.String()
	if strings.Contains(s, "&lt;") {
		log.Fatal(b.String())
	}
}
```

The above prints `&lt;?PITarget PIContent?>`.

I would expect it to be left untouched, e.g. `<?PITarget PIContent?>`.

https://en.wikipedia.org/wiki/Processing_Instruction
Repository: godot
Issue: Add a flag to create a project from the CLI
Labels: enhancement,topic:editor

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if non-official. -->
3.0.6

**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->
Linux

**Issue description:**
<!-- What happened, and what was expected. -->

Could the godot CLI have a `-i/--init` flag that creates a new project at the provided path?

I often spin up new projects in `/tmp` to just quickly test things out, and I find the current process a little clumsy. In particular, regardless of where I start `godot` from, the project path always defaults to `$HOME`, so I have to navigate through a file dialog when I already had a shell open exactly where I wanted a new project.
Repository: pytorch
Issue: torch.multiprocessing.pool.Pool broken
Labels: module: multiprocessing,triaged,small

## 🐛 Bug

Cannot create a `torch.multiprocessing.pool.Pool` instance.

## To Reproduce

Steps to reproduce the behavior:

```
Python 3.6.3rc1+ (default, Feb  5 2019, 15:51:57)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from torch.multiprocessing.pool import Pool

In [2]: p = Pool(1)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-ce2ba693018c> in <module>()
----> 1 p = Pool(1)

/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/multiprocessing/pool.py in __init__(self, processes, initializer, initargs, maxtasksperchild, context)
    154                  maxtasksperchild=None, context=None):
    155         self._ctx = context or get_context()
--> 156         self._setup_queues()
    157         self._taskqueue = queue.Queue()
    158         self._cache = {}

/mnt/xarfuse/uid-169887/8eb75d00-ns-4026531840/torch/multiprocessing/pool.py in _setup_queues(self)
     21
     22     def _setup_queues(self):
---> 23         self._inqueue = SimpleQueue()
     24         self._outqueue = SimpleQueue()
     25         self._quick_put = self._inqueue._writer.send

TypeError: __init__() missing 1 required keyword-only argument: 'ctx'
```

## Expected behavior

No exception.
Repository: opencv
Issue: bug in videoio crash while releasing capture
Labels: category: videoio,platform: win32

- OpenCV => 4.0.1
- Operating System / Platform => Windows 7 64 Bit
- Compiler => Visual Studio 2017


when calling capture release, sometimes it crashes when the app is going to quit and the debugger stops in file cap_dshow.cpp, the problem is that it happens only from time to time, hard to reproduce. When the release is called without app quitting, it is OK all the time. Some resources are already deleted?

```
videoDevice::~videoDevice(){
    if(setupStarted){ DebugPrintOut("\nSETUP: Disconnecting device %i\n", myID); }
    else{
        if(sgCallback){
            sgCallback->Release();
            delete sgCallback;
        }
        return;
    }

    HRESULT HR = NOERROR;

    //Stop the callback and free it
    if( (sgCallback) && (pGrabber) )
    {
        pGrabber->SetCallback(NULL, 1);
        DebugPrintOut("SETUP: freeing Grabber Callback\n");
-->        sgCallback->Release();
```
Repository: rust
Issue: Consider aggregate types containing unconstructable types to also be unconstructable
Labels: A-type-system,T-lang,needs-rfc,T-types

Currently `Option<!>` is 0-sized, but `Option<(T, !)>` isn't, despite the fact that the `Some` variant of the latter is unconstructable. If this were fixed then you could implement `PhantomData` in userland as:

```rust
type PhantomData<T> = Option<(T, !)>;
```

instead of it being special-cased in the compiler.
Repository: pytorch
Issue: Hardshrink for Sparse Tensors
Labels: module: sparse,feature,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

RuntimeError: hardshrink is not implemented for type torch.sparse.FloatTensor

## Motivation

We are experimenting with sparse neural networks. We want to model the connection between neurons with sparse matrices. At times, if the weights are too small we want to prune connections, i.e. set the element in the sparse matrix to zero via a hardshrink.


cc @vincentqb
Repository: godot
Issue: Allow BoneAttachments to be outside of skeleton
Labels: enhancement,topic:core

**Godot version:**
v3.1-beta3

**OS/device including version:**
ArchLinux rolling

**Issue description:**
It would be very convenient if BoneAttachment had extra "skeleton" parameter to allow putting them outside of skeleton.
Repository: flutter
Issue: `AnnotatedRegion<SystemUiOverlayStyle>` pattern docs are hard to find
Labels: framework,f: material design,d: api docs,c: proposal,P2,team-design,triaged-design

We should point to `setSystemUIOverlayStyle`'s `AnnotatedRegion<SystemUiOverlayStyle>` pattern from the "See also:" section of the docs for `AnnotatedRegion`, 'SystemUiOverlayStyle', `SystemChrome`, `AppBar.backgroundColor`, `AppBar`, `AppBarTheme`, and anywhere else that makes sense.
Repository: kubernetes
Issue: Need documentation on expected permissions for mounted volumes in a Pod
Labels: kind/bug,kind/documentation,sig/storage,lifecycle/frozen

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!-->


**What happened**:
We ran percona mysql as Pod on GKE, Minikube and a proprietary PMK platform. The percona image is built with best practices docker documents. It runs the process mysqld as user "mysql" because running as root is not advised. It sets ownership of mysql data directory and declares it a "volume", which is an indication to underlying platform that it should not manage the data in it. What we are seeing is that this volume gets mounted as "root:root" on proprietary kubernetes and "mysql:root" on GKE/Minikube.
 
**What you expected to happen**:
All kubernetes platforms should exhibit the same behavior. I'm looking for standard documentation around how permissions are supposed to behave on kubernetes, the correct behavior to adhere to.

**How to reproduce it (as minimally and precisely as possible)**:
Run percona mysql docker image (percona/mysql-5.7) as a Pod

**Anything else we need to know?**:
The proprietary kubernetes uses datera storage as backend.
**Environment**:
- Kubernetes version (use `kubectl version`):
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-30T21:39:16Z", GoVersion:"go1.11.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T15:13:31Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g. `uname -a`):
- Install tools:
- Others:
Repository: flutter
Issue: Get webview cookies (including HttpOnly)
Labels: c: new feature,p: webview,package,team-ecosystem,P2,triaged-ecosystem

This is crucial for authenticating with a WebView. The ability to get the cookies will let you do further requests with the http plugin.
Repository: flutter
Issue: Support wildcard/globs in `flutter: assets:` YAML
Labels: tool,a: assets,P3,team-tool,triaged-tool

See https://github.com/flutter/flutter/issues/4890#issuecomment-407327749.

I'd like to write:

```yaml
flutter:
  assets:
    - assets/icons/**.png
```

... instead of ...

```yaml
flutter:
  assets:
    - assets/icons/country_flags/
    - assets/icons/currency_codes/
    - assets/icons/credit_card_vendors/
```
Repository: flutter
Issue: Meta issue for the difficulty of using assets with Flutter
Labels: tool,a: assets,customer: crowd,P2,team-tool,triaged-tool

I wanted to try and highlight how several outstanding issues related to assets really hurt productivity:

* [ ] Including all the files in a directory is only supported for the _current_ package:

  ```yaml
  flutter:
    assets:
      - assets/country_flags/ # OK
      - packages/country_flag_icons/assets/ # Silently does not work
  ```

  Related: https://github.com/flutter/flutter/issues/22944

* [ ] Flutter _packages_ (i.e. not apps) cannot declare their own assets:

  ```yaml
  # A package I'd like to host on Pub or GitHub.
  name: country_flag_icons

  flutter:
    assets:
      - assets/country_flags/
  ```

  ```yaml
  name: my_app

  dependencies:
    country_flag_icons: ^1.0.0
  ```

  ... will result in runtime asset errors. See above issue for why this is difficult to workaround.

  Related: https://github.com/flutter/flutter/issues/22921

* [ ] Asset inclusion only works by individual file or individual folder

  ```yaml
  # Let me write...
  flutter:
    assets:
      - assets/icons/**.png
  ```

  Related: https://github.com/flutter/flutter/issues/27801

* [x] Assets added to a directory are not picked up during hot reload/restart:

  ... leading the need of killing and restarting the app from scratch when working with assets.

  Related: https://github.com/flutter/flutter/issues/18896

* [x] Assets are not usable in (non-driver) tests:

  ... meaning that testing packages that provide assets is very difficult.

  Related: https://github.com/flutter/flutter/issues/12999
Repository: go
Issue: x/crypto/acme: send req with external context to RetryBackoff function
Labels: NeedsInvestigation

### What did you do?

```golfing
client = &acme.Client{
			Key:          config.PrivateKey,
			DirectoryURL: *ServerApiURL,
			RetryBackoff: func(n int, r *http.Request, res *http.Response) time.Duration {
				ctx := r.Context()
				retryLogger := zc.L(ctx) // get logger from context https://github.com/rekby/zapcontext
				if retryLogger == nil {
					retryLogger = logger.With(zap.String("request_context", "no-logger"))
				}
                                retryLogger.Info("Test")
                       }
}
                 
```

Send request to Lets encrypt with retrieval error.
		_, err = client.Accept(ctx, httpchallenge)

### What did you expect to see?

logs with my logger from ctx, and without request_context" = "no-logger"


### What did you see instead?
logs with "request_context" = "no-logger" and without my logger from context ctx.

I suggest to send req with external context to function. Now it receive clear context (but http call do with external context).
My patch for self: https://github.com/rekby/crypto/commit/9874cac870c3253304772cee7f13a87c56040e88
Repository: go
Issue: x/build/maintner: GitHub issue becoming 404 (e.g., due to being deleted) is not reflected in model
Labels: Builders,NeedsInvestigation

GitHub issue golang/go#23772 is currently 404.

If it's possible to do so in the scope of the work that `maintner` already does (i.e., it doesn't require going out of its way), then it should detect that and set its [`NotExist`](https://godoc.org/golang.org/x/build/maintner#GitHubIssue.NotExist) field gets to true.

```Go
c, err := godata.Get(context.Background())
if err != nil {
	panic(err)
}
i := c.GitHub().Repo("golang", "go").Issue(23772)

fmt.Println(i.NotExist)

// Output: false (but should be true)
```

/cc @bradfitz @jmdobry

(This came up from #30182.)
Repository: rust
Issue: Redundant bounds check is not elided
Labels: A-LLVM,I-slow,C-enhancement,T-compiler,C-optimization

[Nightly Playground link](https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=aed66d73af0bece065fb47940cefe14a)

Splitting a slice in two such that `left.len() <= right.len()`, then looping `left.len()` times over the elements of `left` and `right` cannot overflow, but a bounds check is emitted for `right[i]` regardless:

```rust
pub fn foo(bytes: &[u8]) -> u8 {
    let (left, right) = bytes.split_at(bytes.len() >> 1);
    let mut total: u8 = 0;
    for i in 0..left.len() {
        let a = left[i];
        let b = right[i];
        let n = a.wrapping_add(b);
        total = total.wrapping_add(n);
    }
    total
}
```

```asm
playground::foo: # @playground::foo
# %bb.0:
	pushq	%rax
	movq	%rsi, %rcx
	shrq	%rcx
	je	.LBB0_1
# %bb.3:
	movq	%rsi, %r8
	subq	%rcx, %r8
	leaq	(%rdi,%rcx), %r9
	xorl	%eax, %eax
	xorl	%esi, %esi

.LBB0_4:                                # =>This Inner Loop Header: Depth=1
	cmpq	%r8, %rsi
	jae	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_4 Depth=1
	addb	(%rdi,%rsi), %al
	addb	(%r9,%rsi), %al
	leaq	1(%rsi), %rdx
	movq	%rdx, %rsi
	cmpq	%rcx, %rdx
	jb	.LBB0_4
# %bb.2:
                                        # kill: def $al killed $al killed $rax
	popq	%rcx
	retq

.LBB0_1:
	xorl	%eax, %eax
                                        # kill: def $al killed $al killed $rax
	popq	%rcx
	retq

.LBB0_6:
	leaq	.Lanon.f6dd5f9df35562231dce3b61698e08b8.0(%rip), %rdi
	movq	%r8, %rdx
	callq	*core::panicking::panic_bounds_check@GOTPCREL(%rip)
	ud2
                                        # -- End function

str.0:
	.ascii	"src/lib.rs"

.Lanon.f6dd5f9df35562231dce3b61698e08b8.0:
	.quad	str.0
	.quad	10                      # 0xa
	.long	6                       # 0x6
	.long	17                      # 0x11
```
Repository: flutter
Issue: Consider Deprecating & Removing `BitField` and `kMaxUnsignedSMI`
Labels: framework,c: API break,c: proposal,P2,team-framework,triaged-framework

The `kMaxUnsignedSMI` is based on and refers to smi and mints concepts from Dart 1. In Dart 2 all ints are 64 bits, making the current name and size inaccurate. It also cannot be accurately represented in JavaScript which only supports 32 bit ints. This poses issues for compilation, requiring either unsupported replacements or different behavior.

The BitField depends on this constant, but is also unused in the framework.

There were several new usages of the `kMaxUnsignedSMI` value which we should audit before introducing more.

cc @goderbauer @gspencergoog @Hixie