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

mini-nbody does not compile #44

Closed
baryluk opened this issue Feb 8, 2024 · 2 comments
Closed

mini-nbody does not compile #44

baryluk opened this issue Feb 8, 2024 · 2 comments

Comments

@baryluk
Copy link

baryluk commented Feb 8, 2024

rocm 6.0.2

this repo at ff81239

user@debian:~/HIP-Examples/mini-nbody$ ./shmoo-cpu-nbody.sh 
In file included from nbody.c:4:
timer.h: In function ‘GetTimer’:
timer.h:49:3: warning: implicit declaration of function ‘timersub’ [-Wimplicit-function-declaration]
   49 |   timersub(&timerStop, &timerStart, &timerElapsed);
      |   ^~~~~~~~
/usr/bin/ld: /tmp/ccxoVs01.o: in function `GetTimer':
nbody.c:(.text+0x1f4): undefined reference to `timersub'
/usr/bin/ld: /tmp/ccxoVs01.o: in function `main':
nbody.c:(.text.startup+0x117): undefined reference to `timersub'
collect2: error: ld returned 1 exit status
nbody
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
./shmoo-cpu-nbody.sh: line 10: ./nbody: No such file or directory
@ppanchad-amd
Copy link

@baryluk Internal ticket has been created to investigate this issue. Thanks!

@schung-amd
Copy link

Closing as the HIP Examples are deprecated, please use rocm-examples and open an issue there if you have further issues.

@schung-amd schung-amd closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants