-
Notifications
You must be signed in to change notification settings - Fork 12
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
Why did it run into a 'loss not found' error when executing 'python main.py --dataset ispd2005 --design_name adaptec1 --load_from_raw True --detail_placement True' #9
Comments
May you provide your OS, cuda and pytorch version? |
Thank you very much for your reply. |
As I remember, the latest torch(>=2.2)'s C++ API requires GCC >= 9.4. Is there any compilation error you encounter when you compile the program? BTW, GCC 9.4 + CUDA 12.1 + Pytorch 2.3.0+cu121 works for me |
Your CUDA version (12.0) is lower than Pytorch's CUDA version (12.1). I am not sure whether this will cause some problems. |
support up to CUDA 12.0 |
Even if I switch to PyTorch 2.4.0 with CUDA 11.8, it still doesn't work |
What is your GCC version? Is it still 4.8.5? |
GCC version is 11.4.0 |
Why is your I guess you are currently using the I suggest referring to commit 0aa58ed as a reference point to modify your code in |
-- The C compiler identification is GNU 11.4.0 Update the VERSION argument value or use a ... suffix to tell -- FLUTE_INCLUDE_DIR: /home/yuhuicheng/Xplace/thirdparty/flute This warning is for project developers. Use -Wno-dev to suppress it. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD |
@huichengyu Please try this. |
this does not contain nn branch |
problem solved ,thank you very much |
Traceback (most recent call last):
File "/home/yuhuicheng/Xplace/main.py", line 104, in
main()
File "/home/yuhuicheng/Xplace/main.py", line 100, in main
run_placement_main(args, logger)
File "/home/yuhuicheng/Xplace/src/run_placement.py", line 41, in run_placement_main
run_placement_all(args, logger)
File "/home/yuhuicheng/Xplace/src/run_placement.py", line 26, in run_placement_all
place_metrics, route_metrics = run_placement_single(cur_args, logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yuhuicheng/Xplace/src/run_placement.py", line 12, in run_placement_single
res = run_placement_main_nesterov(args, logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yuhuicheng/Xplace/src/run_placement_nesterov.py", line 163, in run_placement_main_nesterov
obj = optimizer.step(obj_and_grad_fn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/share/process/anaconda3/envs/xplace/lib/python3.11/site-packages/torch/optim/optimizer.py", line 391, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/yuhuicheng/Xplace/src/nesterov_optimizer.py", line 128, in step
return obj
^^^
UnboundLocalError: cannot access local variable 'obj' where it is not associated with a value
The text was updated successfully, but these errors were encountered: