# Creating Memory and GPU Attribute for Jupyter

**URL:** <https://discourse.openondemand.org/t/creating-memory-and-gpu-attribute-for-jupyter/554>\
**Category:** Get Help\
**Tags:** question\
**Created:** [October 17, 2019, 3:07pm UTC](https://discourse.openondemand.org/t/creating-memory-and-gpu-attribute-for-jupyter/554 "2019-10-17T15:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [October 22, 2019, 6:56pm UTC](https://discourse.openondemand.org/t/creating-memory-and-gpu-attribute-for-jupyter/554/5 "2019-10-22T18:56:11Z")

</div>

I think you may have 2 things wrong. First, the yml isn’t indented correctly. script and batch\_connect should be on the same indent (0th indent). See that below.

Secondly, I think the cli argument for cores in SLURM is -c --cpus-per-task. Though I could be wrong on that, I just quickly [checked the docs](https://slurm.schedmd.com/sbatch.html), so I don’t know that for sure; you may need to tweak that or could be more familiar with SLURMs cli than me. What you’ve listed above looks like Torque’s cli.

```auto
batch_connect:
  template: "basic"
# script has same indent as batch_connect
script:
  # I think this is the slurm cli for nodes (-N) and cpus (--cpus-per-task)
  native:  
  - "-N <%= bc_num_slots.blank? ? "1" : bc_num_slots.to_i %>"
  - "--cpus-per-task=<%= ncpus %>" 

```

Hope that helps!

---

_[View the full topic](https://discourse.openondemand.org/t/creating-memory-and-gpu-attribute-for-jupyter/554)._
