jatinx / hip-on-nv Goto Github PK
View Code? Open in Web Editor NEWHIP on nv platform
License: MIT License
HIP on nv platform
License: MIT License
blybob@pop-os:/github_repos_all/hip-on-nv/build$ hipcc/github_repos_all/hip-on-nv/build$ cd ..
nvcc fatal : No input files specified; use option --help for more information
blybob@pop-os:
blybob@pop-os:/github_repos_all/hip-on-nv$ hip/github_repos_all/hip-on-nv$ cd test/
hipcc hipercdecode hipstopgm
blybob@pop-os:
blybob@pop-os:/github_repos_all/hip-on-nv/test$ hipcc t.cu/github_repos_all/hip-on-nv/test$ ls
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleLoadData': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x41e): undefined reference to
cuModuleLoadData'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleGetFunction': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x456): undefined reference to
cuModuleGetFunction'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleGetGlobal': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x493): undefined reference to
cuModuleGetGlobal_v2'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleUnload': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x4b8): undefined reference to
cuModuleUnload'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleLaunchKernel': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x514): undefined reference to
cuLaunchKernel'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipInit': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x550): undefined reference to
cuInit'
collect2: error: ld returned 1 exit status
blybob@pop-os:
t.cu
blybob@pop-os:/github_repos_all/hip-on-nv/test$ cd ../github_repos_all/hip-on-nv$ hipcc
blybob@pop-os:
bin/ build/ CMakeLists.txt .git/ .gitignore include/ LICENCE README.md src/ test/
blybob@pop-os:/github_repos_all/hip-on-nv$ ls/github_repos_all/hip-on-nv$ ls
bin build CMakeLists.txt include LICENCE README.md src test
blybob@pop-os:
bin build CMakeLists.txt include LICENCE README.md src test
blybob@pop-os:/github_repos_all/hip-on-nv$ cd test//github_repos_all/hip-on-nv/test$ ls
blybob@pop-os:
HelloWorld.cpp t.cu
blybob@pop-os:/github_repos_all/hip-on-nv/test$ mv HelloWorld.cpp ..//github_repos_all/hip-on-nv/test$ cd ..
blybob@pop-os:
blybob@pop-os:/github_repos_all/hip-on-nv$ ls/github_repos_all/hip-on-nv$ hipcc HelloWorld.cpp
bin build CMakeLists.txt HelloWorld.cpp include LICENCE README.md src test
blybob@pop-os:
HelloWorld.cpp: In function ‘void helloworld(char*, char*)’:
HelloWorld.cpp:39:19: error: ‘hipThreadIdx_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~~
HelloWorld.cpp:39:36: error: ‘hipBlockDim_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~
HelloWorld.cpp:39:52: error: ‘hipBlockIdx_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~
HelloWorld.cpp: In function ‘int main(int, char**)’:
HelloWorld.cpp:64:28: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
64 | hipMemcpy(inputBuffer, input, (strlength + 1) * sizeof(char), hipMemcpyHostToDevice);
| ^~~~~
| |
| const void*
In file included from /usr/local/include/hip/hip_runtime.h:2,
from HelloWorld.cpp:23:
/usr/local/include/hip/hip_runtime.inl:162:39: note: initializing argument 2 of ‘hipError_t hipMemcpy(void*, void*, size_t, hipMemcpyKind)’
162 | hipError_t hipMemcpy(void *dst, void *src, size_t size, hipMemcpyKind direction)
| ~~~~~~^~~
HelloWorld.cpp:66:9: error: ‘hipLaunchKernelGGL’ was not declared in this scope; did you mean ‘cuLaunchKernel’?
66 | hipLaunchKernelGGL(helloworld,
| ^~~~~~~~~~~~~~~~~~
| cuLaunchKernel
blybob@pop-os:~/github_repos_all/hip-on-nv$ hipcc M
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.