Python Forum
Cannot run my python to use gpu? Please help :(
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot run my python to use gpu? Please help :(
#1
Hello, I have that code, so I want to accelerate him to use GPU instead of CPU, but I get error.
I try useing python 2.7 and 3.7...
My pure python code is :

start = 20
unknown = 1
finish = 100


def test():
    global check
    check = start + unknown
    return check

check = test()
while check != finish:
    unknown += 1
    test() 
else:
    print(unknown)
Can I use this code with cuda?
I try few ways and I got to this error.
Error:
AttributeError: Failed at object (analyzing bytecode) 'DataFlowAnalysis' object has no attribute 'op_STORE_GLOBAL'
Im using python on Windows 7 ultimate sp1 64bit, core i5.
Thank you.
Reply
#2
There's no issues with your code. How are you running it?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020