Questions tagged [mps]

JetBrains MPS is a language workbench to create Domain Specific Languages (DSL).

With MPS you can design your own extensible DSLs and start using them right away to build end-user applications. The unique ability of the projectional editing technology is that it allows you to overcome the limits of language parsers, for building richer DSL editors with tables and diagrams. Still puzzled? Watch our video.

Useful Links:

108 questions
1
vote
1 answer

Implement CERT rules using MPS

I am trying to develop a DSL for CERT Java Coding guidelines. That time I got a framework called jetbrains MPS.I tried most of the documents available in jetbrains site. But those are not sufficient for my work. Two doubts are can I implement CERT…
rahul b
  • 21
  • 3
1
vote
1 answer

MPS Generator - is it possible to reference an external language's label?

For example, I have language generators: 1) A -> baseLanguage a) defines a concept `a1` b) defines a label `a1ToClass`, in: `a1` of `A`, out: `ClassConcept` of `baseLanguage` 2) B -> A a) defines a concept `b1` b) defines a label…
Askar Kalykov
  • 2,553
  • 1
  • 22
  • 43
1
vote
2 answers

Mate libGDX and Jetbrains MPS

I also posted this question on the LibGDX forums. Hey there! For my thesis, I'm writing a DSL to describe the look of pictures. These pictures will be painted by libGDX according to the DSL-Input. By now, jetbrains MPS (v. 3.0) and the newest…
Erdbaerchen
  • 143
  • 7
1
vote
1 answer

JetBrains MPS Shapes tutorial error

I've been following the JetBrains MPS Shapes tutorial: https://confluence.jetbrains.com/display/MPSD32/Shapes+-+an+introductory+MPS+tutorial In the tutorial section "A more robust generation for Squares" there is the following definition: template…
Dan789
  • 81
  • 4
1
vote
1 answer

Example on how to use JetBrains' MPS with Maven?

I'm currently playing around with JetBrains' MPS. While the documentation lists a few examples on how to create IntelliJ plugins from your custom languages (https://confluence.jetbrains.com/display/MPSD31/Building+IntelliJ+IDEA+language+plugins), I…
Jan Thomä
  • 13,296
  • 6
  • 55
  • 83
1
vote
0 answers

Setup for enhancing the C language using mbeddr and mps

I'm trying to write some new statements for an internal C DSL. The tool of my choice is MPS and the base is the c-core of mbeddr. I found this tutorial on the internet. Since it is a little old, I am not able to duplicate the exact structure of the…
smoes
  • 591
  • 2
  • 17
1
vote
2 answers

escape function parameter in batch

I'm working on a DSL that will compile to batch script (for fun...). I'm trying to make a function call, like that: the DSL defines function with parameter named param1. the batch defines a label with param1=%1. the DSL defines a call with some…
koko0
  • 41
  • 3
1
vote
1 answer

Dynamics CRM Provisioning Options

Our business is looking to automating Dynamics CRM hosting. We've been looking at the options. At the moment, it seems like HMC/MPS would be useful. However, from the looks of it, the frameworks are nearing end of life and are also. HMC/MPS also…
Chris
  • 117
  • 1
  • 10
0
votes
0 answers

MPS TextGeneratorEngine returns 'Failed to generate text for node x'

I have few problems with my Jetbrains MPS (version 2020.3.6) project: I have an project that defines two languages A & B. I defined a generator that translates from A to B, and a textGen for B and A. This works perfectly, meaning it generates in the…
Xarencia
  • 26
  • 1
0
votes
1 answer

DataLoader - pytorch inconsistency between cpu and mps - Apple Silicon

I got stuck on this inconsistency with DataLoader in Pytorch on Mac Apple Silicone. If I use cpu y is interpreted correctly. However If I use mps it always returns vector with correct length, however only based on first element y[0]. import…
Pavol Travnik
  • 853
  • 3
  • 14
  • 32
0
votes
0 answers

Torch MPS on Intel Mac: get name of device?

In Python, on a machine that has an NVIDIA GPU, one can confirm the mps device name of the GPU using: torch.cuda.get_device_name() Per the docs: https://pytorch.org/docs/stable/generated/torch.cuda.get_device_name.html#torch.cuda.get_device_name How…
0
votes
0 answers

Running model prompt on stable diffusion model from hugging face on mps MacOS

import gradio as gr import torch import numpy as np import modin.pandas as pd from PIL import Image from diffusers import DiffusionPipeline import os os.environ["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0" device = 'cuda' if…
B.AL
  • 1
0
votes
0 answers

A problem with missing attribute with mps

I have a certain problem with a certain error "module 'torch' has no attribute 'has_mps'". I followed tutorial on how to install it on github page RVC-GUI, even when I done everything correctly. I know someone here had a similar problem like me, but…
0
votes
0 answers

Error when setting batchnoem layers to frozen under mps device on a m1 mac

I have been struggling with this weird error for a few days now and I can’t seem to find a solution, the code I provide works perfectly when using cpu but when using the mps device on a mbp 14 it throws an error. Additionally it definitely is not a…
0
votes
0 answers

Pytorch on M2 Mac(2022): RuntimeError: Placeholder storage has not been allocated on MPS device

I'm training a model in PyTorch 2.0.0.I built a model Bert+Liner Model below. I have set device=torch.device("mps").Error occurs where input_ids,attention_mask,token_type_ids,labels. Thanks for your help~~ i expect that model could run on mps, while…
ErShi
  • 1