Displaying 20 results from an estimated 43 matches for "mycod".
Did you mean:
myco
2001 Feb 27
1
using fmod in C code to be loaded into R
Dear People,
I wrote the following bit of C code and (along with other bits) called it
mycode.c, and compiled the file into a shared library to load into R,
using R CMD SHLIB mycode.c. This was Ok, but when I tried to load this
into R using dyn.load("mycode.so") I got the error
> dyn.load("mycode.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unab...
2005 Dec 28
1
segmetation fault
Hey,
I don;t know if anyone has come across this error before...
I am running R on the terminal of my MAC OS X 10.3.4 and I have written C code and compiled it using
R CMD SHLIB mycode.c
There were no problems in compiling so I now have mycode.o and mycode.so.
I used dyn.load("mycode.so") and again, no problems. But when I try to use the code .C("mycode",x) I get the error Segmentation fault and R shuts down. Any ideas as to where my problem could be?...
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance.
I am trying to pull some data back from a web service
library(httr)
sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode")
result2 <- content(sample2)
height <- result2$height[[1]]
I would like to put by own latitude and longitude in but alas when I use paste() to combine the double quotes become stuck as literally \"
lat <-10
long <20
library(httr)
sample2 <- GET(paste("https://e...
2018 Jan 24
0
Issue with concatenation of URL losing
...ture
questions, and only you can avoid this by using your email software
properly.
########
lat <- 40.7
lon <- -76.5
tstring1 <-
"https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode"
cat( tstring1, "\n" ) # output on its own line
#> https://elevation.mapzen.com/height?json={"range":false,"shape":[{"lat":40.7,"lon":-76.5}]}&api_key=mycode
tstring2 <- paste0( "https://elevation.mapzen.com/height?json={\"...
2010 Oct 04
1
source package build/installation with subdirectory-lib
...h$ ./configure --prefix=./lib --with-pic --disable-shared
this builds depPkglib.a and puts it in the lib directory under depPkg.
now when i compile *my* shared library in testing, it also works just
fine:
bash$ cd src
bash$ gcc -std=gnu99 -I/usr/share/R/include -I../depPkg/include -fpic -
g -O2 -c mycode.c -o mycode.o
bash$ gcc -std=gnu99 -shared -o mycode.so mycode.o -L/usr/lib64/R/lib -
lR -L../depPgk/lib -ldepPkg
when in R, i can now use dyn.load("mycode.so") and .Call(...) with my
C functions perfectly.
now i want to build the package so i can install it easily on my
colleagues'...
2019 Feb 26
2
Debug info for CUDA code
...me/aznb/.linuxbrew/Cellar/llvm/HEAD-48aefa8/lib/clang/9.0.0/include/cuda_wrappers -internal-isystem /net/gs/vol3/software/modules-sw/cuda/10.0/Linux/RHEL6/x86_64/include -include __clang_cuda_runtime_wrapper.h -isystem /home/aznb/.linuxbrew/Cellar/boost/1.68.0_clang/include/boost-1_68 -I /home/aznb/mycodes/scbmc -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/core/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/containers/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/algorithms/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_deb...
2019 Feb 27
3
Debug info for CUDA code
...me/aznb/.linuxbrew/Cellar/llvm/HEAD-48aefa8/lib/clang/9.0.0/include/cuda_wrappers -internal-isystem /net/gs/vol3/software/modules-sw/cuda/10.0/Linux/RHEL6/x86_64/include -include __clang_cuda_runtime_wrapper.h -isystem /home/aznb/.linuxbrew/Cellar/boost/1.68.0_clang/include/boost-1_68 -I /home/aznb/mycodes/scbmc -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/core/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/containers/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/algorithms/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_deb...
2017 Jun 19
1
arrows: no vectors for "code" and "angle" parameters
...rameters? When code like this is wrapped into an
Sweaved document--we I don't see the graph on the screen--this error
is difficult to catch while proofreading.
Example:
x0 <- c(-1, -4, 4.5)
y0 <- c(-1, -4, -8)
x1 <- c(2, -2, -3)
y1 <- c(4, 4, 18)
mylengths <- c(0.2, 0.3, 0.15)
mycodes <- c(3, 2, 1)
myangle <- c(10, 60, 80)
plot(x = c(-5, 5), y = c(-10, 20),
type = "n", xlab = "", ylab = "")
arrows(x0 = x0, y0 = y0, x1 = x1, y1 = y1,
length = mylengths, code = mycodes, angle = myangle)
I found a workaround, but this is more dif...
2019 Mar 11
2
Debug info for CUDA code
...me/aznb/.linuxbrew/Cellar/llvm/HEAD-48aefa8/lib/clang/9.0.0/include/cuda_wrappers -internal-isystem /net/gs/vol3/software/modules-sw/cuda/10.0/Linux/RHEL6/x86_64/include -include __clang_cuda_runtime_wrapper.h -isystem /home/aznb/.linuxbrew/Cellar/boost/1.68.0_clang/include/boost-1_68 -I /home/aznb/mycodes/scbmc -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/core/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/containers/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/algorithms/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_deb...
2020 Jan 15
2
Debug info for CUDA code
...me/aznb/.linuxbrew/Cellar/llvm/HEAD-48aefa8/lib/clang/9.0.0/include/cuda_wrappers -internal-isystem /net/gs/vol3/software/modules-sw/cuda/10.0/Linux/RHEL6/x86_64/include -include __clang_cuda_runtime_wrapper.h -isystem /home/aznb/.linuxbrew/Cellar/boost/1.68.0_clang/include/boost-1_68 -I /home/aznb/mycodes/scbmc -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/core/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/containers/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_debug/_deps/kokkos-src/algorithms/src -I /home/aznb/mycodes/scbmc/build_cuda_clang_deb...
2012 Mar 04
2
[LLVMdev] Passing arguments to opt via clang
I have tried to invoke a transformation/optimization pass using -mllvm,
without success. I might be missing something.
For example I have a shared/dynamic library which contains LLVM passes. I
used to invoke them with llvmc like this:
>>*llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo*
Can this style of optimization be executed using -mllvm argument?
Thx,
PMon
On Sun, Mar 4, 2012 at 3:48 PM, Tobias Grosser <tobias at grosser.es> wrote:
> On 03/04/2012 02:32 PM, Harel Cain wrote:
> > Thanks, but I'm not s...
2019 Feb 26
1
Debug info for CUDA code
...r/lib/gcc/x86_64-redhat-linux/4.4.7
Selected GCC installation: /home/aznb/.linuxbrew/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.5.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /net/vol3/software/modules-sw/cuda/10.0/Linux/RHEL6/x86_64, version 10.0
"/home/aznb/mycodes/testcuda -ferror-limit 19 -fmessage-length 0 -pthread -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/59224042.1.login.q/axpy-560f45.s -x cuda axpy.cu
clang -cc1 version 9.0.0 based upon LLVM 9.0.0svn default target x86_64-unknown-linux-gnu
ignoring nonexistent...
2011 Dec 30
1
HELP!! - PHP calling R to execute a r-code file (*.r)
Hi,
I have met a tough problem when using PHP to call R to generate some plots.
I tested it okay in my personal computer with WinXP. But when I was trying
to update to my server (Win2003 server), I found it did not work. Below is
the details:
1> r-code file (E:/mycode.r):
----------------------
jpeg("E:/mytest.jpg")
plot(1:10)
dev.off()
----------------------
2> php code:
-------------------
exec("R CMD BATCH --vanilla --slave --no-timing E:/mycode.r && exit");
-------------------
3> results:
for WinXP: the image can be genera...
2008 Jul 08
6
Question: Beginner stuck in a R cycle
...some quantitative measurements are given and an column named Pr_mean, with no values.
I would like to set a cycle to compute the average of prevalence values for each different code and store the averages under the empty field Pr_mean.
This is what I wrote:
# Set a cycle
for (i in 1:nrow(myD)) {
mycode = myD$code[i]
mymean[i] = mean(prevalence)
myD$Pr_mean[i] = mymean[i]
}
With the above cycle I am able to compute the average of all 200 observations which is then written in every cell.
I understand that a condition is missing, that indicates that the average has to be computed amongst the obser...
2014 Feb 26
0
[PATCH v5 3/8] qspinlock, x86: Add x86 specific optimization for 2 contending tasks
...urn atomic_cmpxchg(&lock->qlcode, qcode, _QSPINLOCK_LOCKED) == qcode;
+}
+
+#define queue_get_lock_qcode queue_get_lock_qcode
+/**
+ * queue_get_lock_qcode - get the lock & qcode values
+ * @lock : Pointer to queue spinlock structure
+ * @qcode : Pointer to the returned qcode value
+ * @mycode: My qcode value
+ * Return : > 0 if lock is not available
+ * = 0 if lock is free
+ * < 0 if lock is taken & can return after cleanup
+ *
+ * It is considered locked when either the lock bit or the wait bit is set.
+ */
+static inline int
+queue_get_lock_qcode(struct qspinlock *loc...
2014 Feb 27
0
[PATCH v5 3/8] qspinlock, x86: Add x86 specific optimization for 2 contending tasks
...urn atomic_cmpxchg(&lock->qlcode, qcode, _QSPINLOCK_LOCKED) == qcode;
+}
+
+#define queue_get_lock_qcode queue_get_lock_qcode
+/**
+ * queue_get_lock_qcode - get the lock & qcode values
+ * @lock : Pointer to queue spinlock structure
+ * @qcode : Pointer to the returned qcode value
+ * @mycode: My qcode value
+ * Return : > 0 if lock is not available
+ * = 0 if lock is free
+ * < 0 if lock is taken & can return after cleanup
+ *
+ * It is considered locked when either the lock bit or the wait bit is set.
+ */
+static inline int
+queue_get_lock_qcode(struct qspinlock *loc...
2012 Mar 04
0
[LLVMdev] Passing arguments to opt via clang
On 03/04/2012 02:32 PM, Harel Cain wrote:
> Thanks, but I'm not sure I understand. I see no such flag in clang 2.9
> nor couldn't I find any mention of it. What does it do?
It's called -mllvm.
You can use it like this.
clang -mllvm -vectorize ...
Cheers
Tobi
2012 Mar 04
0
[LLVMdev] Passing arguments to opt via clang
Hello
> For example I have a shared/dynamic library which contains LLVM passes. I
> used to invoke them with llvmc like this:
>>>llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo
> Can this style of optimization be executed using -mllvm argument?
No. You cannot add additional passes this way, only pass 'ordinary' arguments.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Pe...
2011 Jul 13
1
R in Batch mode
Hi, I'm running long code in Batch mode (as a process in ubuntu using
$nohup R CMD BATCH MyCode.R out.out &), but every one in a while it fail
and the process stops.
When the code finish with no problems, it sends an e-mail, but if fails,
I'm not aware unless I check the working process, and I cannot be
checking the process all day!.
Is there any way to send me a warning when the...
2006 Feb 28
1
trouble with R CMD SHLIB on winXP
Hi,
Has anyone come across this difficulty using R-2.2.1 in Windows XP:
when I try to run
R CMD SHLIB mycode.c
I get the response:
"The system cannot execute the specified program."
I've tried installing all windows updates, reinstalling R and putting
"R-2.2.1\bin" at the head of my path.
Googling that error message leads to lots of stuff about *.manifest
files. The Rgui.exe....