Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can‘t solve QP problem when dimension is too high. #37

Open
WHQ1111 opened this issue Mar 10, 2020 · 3 comments
Open

Can‘t solve QP problem when dimension is too high. #37

WHQ1111 opened this issue Mar 10, 2020 · 3 comments

Comments

@WHQ1111
Copy link

WHQ1111 commented Mar 10, 2020

When I try this:

G = torch.eye(2000).expand(8,2000,2000).cuda()
e = torch.randint(0,1,[8,2000]).cuda()
C = torch.eye(2000).expand(8,2000,2000).cuda()
h = torch.randint(0,1,[8,2000]).cuda()
A = torch.randn(8,100,2000).cuda()
b = torch.zeros(8,100).cuda()
qp_sol = QPFunction(verbose=False, maxIter=15)(G, e, C, h, A, b)

I get

RuntimeError: CUDA error: invalid configuration argument

How to solve this problem? Or it can't work when dimension is too high.

@Tsingularity
Copy link

Tsingularity commented Jul 6, 2020

i have the same error here.

Have u solved this yet?

@nothingeasy
Copy link

I found the problem may cause by pre_factor_kkt function where use lu_solve(*Q_LU) function in solvers/pdipd/batch.py, which indicate torch.lu_solve can not solve this part.

@LinkToPast1900
Copy link

pytorch/pytorch#61815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants