You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really an 'issue' but I did have to go through some hoops to get this to work....
Use llvm@7 from homebrew
comment out line 35-83 in /llvm@7/7.1.0_2/lib/clang/7.1.0/include/cuda_wrappers/new to remove all of the ::operator free/new/deletes which cause errors when compiling cuda code
This is at the moment compiling under rosetta. I'm about to try aarch64 and will report back here.
I tried llvm 11 from the latest homebrew package but the hostraw.ll file contained unnamed function parameters (%0, %1) which it didn't seem to like.
hostraw.ll:9:46: error: expected ')' at end of argument list
define void @_Z18__device_stub__addPiS_(i32* %0, i32* %1) #0 {
the llvm 4 package from the install distro was tricky in that it didn't accept the version of macos (too early a version of clang?). I can't find where that argument is coming from/being generated. error: invalid version number in '-mmacosx-version-min=11.1
Oh well, still a cool little project. I'll see if I can get anything more complicated running.
The text was updated successfully, but these errors were encountered:
dokipen3d
changed the title
Success compiling and running cuda_example.cu on Apple M1 Big sure
Success compiling and running cuda_example.cu on Apple M1 Big sur
Feb 17, 2021
This isn't really an 'issue' but I did have to go through some hoops to get this to work....
I tried llvm 11 from the latest homebrew package but the hostraw.ll file contained unnamed function parameters (%0, %1) which it didn't seem to like.
the llvm 4 package from the install distro was tricky in that it didn't accept the version of macos (too early a version of clang?). I can't find where that argument is coming from/being generated.
error: invalid version number in '-mmacosx-version-min=11.1
Oh well, still a cool little project. I'll see if I can get anything more complicated running.
The text was updated successfully, but these errors were encountered: